Skip to content
Failed

Changes

Summary

  1. gateware: Add a proper 'busy' indicator in capture hardware (details)
  2. firmware: Make sure we're not in a packet before starting flush mode (details)
  3. firmware: At the end of a flush, send either short packet or ZLP (details)
  4. firmware/main: Disable console for non-debug builds (details)
  5. firmware/main: Use defines for misc CSR (details)
  6. firmware/main: Cleanup start.S a bit and disable boot debug (details)
  7. firmware: Change cross compiler to riscv-none-elf- (details)
Commit d40cd411ec9bfaa0c71d51e205ee982b527df37d by Sylvain Munaut
gateware: Add a proper 'busy' indicator in capture hardware

This allows the software to know if we're currently inside a packet.

Note that when ctrl_active is set low a new packet can still start
a tiny bit after since we could be inside of receiving the SYNC or
PID byte and 'busy' will only enable after the first byte of the
packet.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The file was modifiedgateware/rtl/ut_pkt.v
Commit cde8ebdd74eb2c305180062dfd55d55be2d7b6db by Sylvain Munaut
firmware: Make sure we're not in a packet before starting flush mode

If we start flush mode inside a packet, then the data fifo could
become empty temporarely, triggering the auto-stop ... and then
fill a little bit again, messing up the flush sequence.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The file was modifiedfirmware/main/usb_tap.c
Commit 5ca8709921c5aa5fb0b33db25227a8e5b7e51d8f by Sylvain Munaut
firmware: At the end of a flush, send either short packet or ZLP

To indicate to the host that the transfer is done and nothing else
is expected, we send either a short packet or a ZLP. Before a short
packet would be sent but if transfer happened to be a multiple of
packet size, then nothing would be sent afterward.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The file was modifiedfirmware/main/usb_tap.c
Commit 8a81a4479110fe591ed716952728edaea16a1121 by Sylvain Munaut
firmware/main: Disable console for non-debug builds

Avoid any accidental presses

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The file was modifiedfirmware/main/main.c
Commit 99bb43baed9556e168ebe69a1db6f905fd810739 by Sylvain Munaut
firmware/main: Use defines for misc CSR

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The file was modifiedfirmware/main/misc.c
Commit a321f6f4d377dad6c977634983e5c4380d3c2291 by Sylvain Munaut
firmware/main: Cleanup start.S a bit and disable boot debug

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The file was modifiedfirmware/main/start.S
Commit caf1607fac696b27e7069c4b6d0fb63dbb8433e4 by Sylvain Munaut
firmware: Change cross compiler to riscv-none-elf-

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The file was modifiedfirmware/boot/Makefile
The file was modifiedfirmware/main/Makefile