Skip to content

Commit 5320bff

Browse files
committed
Merge pull request adafruit#557 from cjbarnes18/device_id_in_deploy
Add device ID to deploy make target for stmhal.
2 parents 349e4c4 + c9f9e54 commit 5320bff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stmhal/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ CC3K_DIR=cc3k
2525
DFU=../tools/dfu.py
2626
# may need to prefix dfu-util with sudo
2727
DFU_UTIL=dfu-util
28+
DEVICE=0483:df11
2829

2930
CROSS_COMPILE = arm-none-eabi-
3031

@@ -201,7 +202,7 @@ all: $(BUILD)/firmware.dfu
201202

202203
deploy: $(BUILD)/firmware.dfu
203204
$(ECHO) "Writing $< to the board"
204-
$(Q)$(DFU_UTIL) -a 0 -D $<
205+
$(Q)$(DFU_UTIL) -a 0 -d $(DEVICE) -D $<
205206

206207
$(BUILD)/firmware.dfu: $(BUILD)/firmware.elf
207208
$(ECHO) "Create $@"

0 commit comments

Comments
 (0)