diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -8,7 +8,6 @@ USBVID = 239a USBPID = '001e|801e' BOSSAC = bossac -SERIAL = $(shell ./find-serial-port $(USBVID) $(USBPID) || echo 'cant-find-serial-port') OFFSET = 0x2000 OBJCOPY = arm-none-eabi-objcopy @@ -35,8 +34,10 @@ cargo-build: $(OUTDIR)/$(APP): cargo-build -flash: $(APP).bin $(SERIAL) - $(BOSSAC) -R -e -w -v -o$(OFFSET) -p$(SERIAL) $< +flash: $(APP).bin + feather-cmd dfu + sleep 2 + $(BOSSAC) -R -e -w -v -o$(OFFSET) -p`./find-serial-port $(USBVID) $(USBPID)` $< qemu: $(OUTDIR)/$(APP) qemu-system-arm -d in_asm,int,exec,cpu,guest_errors,unimp -pidfile qemu.pid -cpu cortex-m0 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -s -S -kernel $< |