summaryrefslogtreecommitdiff
path: root/fw
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-09-30 02:38:47 +0200
committerUros Majstorovic <majstor@majstor.org>2022-09-30 02:38:47 +0200
commit4699baaf4e1171ee7f7b508280a342bb2e2f24e9 (patch)
treeb162247db7c0d84387ce75057df5262186010e7e /fw
parentf30abc1f75f483ffe78d92d5109b6c1d700925a3 (diff)
fixed upload targets
Diffstat (limited to 'fw')
-rw-r--r--fw/fe310/phone/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/fw/fe310/phone/Makefile b/fw/fe310/phone/Makefile
index 65de081..9cdac9e 100644
--- a/fw/fe310/phone/Makefile
+++ b/fw/fe310/phone/Makefile
@@ -20,17 +20,17 @@ app_:
$(TARGET): app_ $(DEPS)
$(CC) $(DEPS) $(LDFLAGS) -o $@
-clean:
- (cd app && $(MAKE) clean) || exit;
- rm -f *.o *.a $(TARGET) $(TARGET).bin
-
upload: $(TARGET)
+ $(OBJCOPY) $(TARGET) -O binary $(TARGET).bin
+ ../../../util/upload $(PORT) $(TARGET).bin
+
+upload_ftdi: $(TARGET)
../bsp/upload --elf ./$(TARGET) --openocd $(RISCV_OPENOCD_HOME)/bin/openocd --gdb $(RISCV_HOME)/bin/riscv64-unknown-elf-gdb --openocd-config ../bsp/openocd_jlink.cfg
upload_jlink: $(TARGET)
$(OBJCOPY) $(TARGET) -O binary $(TARGET).bin
../bsp/upload --bin ./$(TARGET).bin --addr 0x20000000 --jlink JLinkExe
-upload_my: $(TARGET)
- $(OBJCOPY) $(TARGET) -O binary $(TARGET).bin
- ../../../util/upload /dev/cu.usbserial-14140 $(TARGET).bin
+clean:
+ (cd app && $(MAKE) clean) || exit;
+ rm -f *.o *.a $(TARGET) $(TARGET).bin