add flash using dfu-util

This commit is contained in:
King Kévin 2024-04-17 06:23:46 +02:00
parent 0c9ae4bbfd
commit dcf4dedd2b
1 changed files with 3 additions and 0 deletions

View File

@ -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 $<