From 4699baaf4e1171ee7f7b508280a342bb2e2f24e9 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 30 Sep 2022 02:38:47 +0200 Subject: fixed upload targets --- fw/fe310/phone/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'fw/fe310/phone') 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 -- cgit v1.2.3