diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-30 02:38:47 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-30 02:38:47 +0200 |
commit | 4699baaf4e1171ee7f7b508280a342bb2e2f24e9 (patch) | |
tree | b162247db7c0d84387ce75057df5262186010e7e /fw/fe310/phone | |
parent | f30abc1f75f483ffe78d92d5109b6c1d700925a3 (diff) |
fixed upload targets
Diffstat (limited to 'fw/fe310/phone')
-rw-r--r-- | fw/fe310/phone/Makefile | 14 |
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 |