add flash using dfu-util
This commit is contained in:
parent
0c9ae4bbfd
commit
dcf4dedd2b
|
@ -23,3 +23,6 @@ flash: $(BUILD)/$(PROJECT).elf
|
|||
|
||||
debug: $(BUILD)/$(PROJECT).elf
|
||||
$(GDB) --eval-command='target remote | $(OOCD) --file interface/$(OOCD_INTERFACE).cfg --command "transport select swd" --file target/$(OOCD_TARGET).cfg --command "gdb_port pipe; log_output /dev/null; init"' $<
|
||||
|
||||
dfu: $(BUILD)/$(PROJECT).bin
|
||||
dfu-util --device 0483:df11 --cfg 1 --intf 0 --alt 0 --detach --dfuse-address 0x08000000 --download $<
|
||||
|
|
Loading…
Reference in New Issue