diff options
Diffstat (limited to 'fw/fe310/phone/Makefile')
-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 |