From 7bc5c0608663e4125b4fd8036a1e70ee345fda3b Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sat, 2 Oct 2021 19:47:08 +1000 Subject: [PATCH] Makefile: Correct parameters for the Orange Crab 85F The Orange Crab v2.1 with 85k LUT FPGA uses a LFE5U-85F device, not an LFE5UM5G device. Specifying the wrong device causes the FPGA to give a configuration error and not load the bitstream. Also add flags to indicate that the device is the highest speed grade (the -8 grade) and that the bitstream should be compressed, and can be loaded at 38.8MHz. Signed-off-by: Paul Mackerras --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 30086a7d..085889f2 100644 --- a/Makefile +++ b/Makefile @@ -161,9 +161,9 @@ CLK_INPUT=48000000 CLK_FREQUENCY=48000000 LPF=constraints/orange-crab.lpf PACKAGE=CSFBGA285 -NEXTPNR_FLAGS=--um5g-85k --freq 48 +NEXTPNR_FLAGS=--85k --speed 8 --freq 48 OPENOCD_JTAG_CONFIG=openocd/olimex-arm-usb-tiny-h.cfg -OPENOCD_DEVICE_CONFIG=openocd/LFE5UM5G-85F.cfg +OPENOCD_DEVICE_CONFIG=openocd/LFE5U-85F.cfg endif # ECP5-EVN @@ -213,7 +213,7 @@ microwatt_out.config: microwatt.json $(LPF) mv -f $@.tmp $@ microwatt.bit: microwatt_out.config - $(ECPPACK) --svf microwatt.svf $< $@ + $(ECPPACK) --compress --freq 38.8 --svf microwatt.svf $< $@ microwatt.svf: microwatt.bit