aboutsummaryrefslogtreecommitdiff
path: root/amaranth_boards
diff options
context:
space:
mode:
authorDaniel Maslowski <info@orangecms.org>2023-01-08 01:41:33 +0100
committerCatherine <whitequark@whitequark.org>2023-01-08 09:16:40 +0000
commit1d82f2ece15ddcce964b9d3be1d13e8a343537eb (patch)
treedec1e57288316d88be5cc0e2266eadeecd8c1a04 /amaranth_boards
parent8b751e33c12fa12c45447cb57916ac43bd305289 (diff)
orangecrab_r0_2: add `-a 0` to dfu command
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: https://github.com/orangecrab-fpga/orangecrab-hardware/issues/48 Signed-off-by: Daniel Maslowski <info@orangecms.org>
Diffstat (limited to 'amaranth_boards')
-rw-r--r--amaranth_boards/orangecrab_r0_2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/amaranth_boards/orangecrab_r0_2.py b/amaranth_boards/orangecrab_r0_2.py
index 8e39dd2..6b56cdb 100644
--- a/amaranth_boards/orangecrab_r0_2.py
+++ b/amaranth_boards/orangecrab_r0_2.py
@@ -124,7 +124,7 @@ class _OrangeCrabR0_2Platform(LatticeECP5Platform):
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])
class OrangeCrabR0_2FPlatform(_OrangeCrabR0_2Platform):
device = "LFE5U-25F"