mirror of
https://github.com/rene-dev/stmbl.git
synced 2026-02-06 02:02:34 +08:00
add VID:PID to satisfy dfu-util if more than one compatible target is present
This commit is contained in:
4
Makefile
4
Makefile
@@ -224,11 +224,11 @@ showsize: build
|
|||||||
btburn: hv build showsize $(TARGET).dfu
|
btburn: hv build showsize $(TARGET).dfu
|
||||||
@tools/bootloader.py
|
@tools/bootloader.py
|
||||||
@sleep 1
|
@sleep 1
|
||||||
@dfu-util -a 0 -s 0x08010000:leave -D $(TARGET).dfu
|
@dfu-util -d 0483:df11 -a 0 -s 0x08010000:leave -D $(TARGET).dfu
|
||||||
|
|
||||||
flash: hv $(TARGET).bin
|
flash: hv $(TARGET).bin
|
||||||
st-flash --reset write $(TARGET).bin 0x08010000
|
st-flash --reset write $(TARGET).bin 0x08010000
|
||||||
|
|
||||||
# Create a DFU file from bin file
|
# Create a DFU file from bin file
|
||||||
%.dfu: %.bin
|
%.dfu: %.bin
|
||||||
@cp $< $@
|
@cp $< $@
|
||||||
|
|||||||
Reference in New Issue
Block a user