Skip to content

Commit

Permalink
orangecrab_r0_2: add -a 0 to dfu command
Browse files Browse the repository at this point in the history
The newer bootloader on the 85F variant exposes two devices.
The first one (0) is the bitstream:

Found DFU: [1209:5af0] ver=0101, devnum=51, cfg=1, intf=0, path="3-1", alt=1, name="0x00100000 RISC-V Firmware", serial="UNKNOWN"
Found DFU: [1209:5af0] ver=0101, devnum=51, cfg=1, intf=0, path="3-1", alt=0, name="0x00080000 Bitstream", serial="UNKNOWN"

See also: orangecrab-fpga/orangecrab-hardware#48

Signed-off-by: Daniel Maslowski <info@orangecms.org>
  • Loading branch information
orangecms committed Jan 8, 2023
1 parent 2d0a23b commit b3cbba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amaranth_boards/orangecrab_r0_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def toolchain_prepare(self, fragment, name, **kwargs):
def toolchain_program(self, products, name):
dfu_util = os.environ.get("DFU_UTIL", "dfu-util")
with products.extract("{}.bit".format(name)) as bitstream_filename:
subprocess.check_call([dfu_util, "-D", bitstream_filename])
subprocess.check_call([dfu_util, "-a 0", "-D", bitstream_filename])


if __name__ == "__main__":
Expand Down

0 comments on commit b3cbba5

Please sign in to comment.