summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-03 21:21:20 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-03 21:21:20 +0100
commit5320bff32c2bb97f36dc9fad62864183520d0327 (patch)
tree5abcb24da9338a215bb663706e203a99bc5c7e19
parent349e4c4a2f816127cbf5c8a3e43f1b089cba5baa (diff)
parentc9f9e547d645bb2d9f7130e2148ddca31b19551e (diff)
downloadmicropython-5320bff32c2bb97f36dc9fad62864183520d0327.tar.gz
micropython-5320bff32c2bb97f36dc9fad62864183520d0327.zip
Merge pull request #557 from cjbarnes18/device_id_in_deploy
Add device ID to deploy make target for stmhal.
-rw-r--r--stmhal/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 4cd33b9581..e27dd7b6ce 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -25,6 +25,7 @@ CC3K_DIR=cc3k
DFU=../tools/dfu.py
# may need to prefix dfu-util with sudo
DFU_UTIL=dfu-util
+DEVICE=0483:df11
CROSS_COMPILE = arm-none-eabi-
@@ -201,7 +202,7 @@ all: $(BUILD)/firmware.dfu
deploy: $(BUILD)/firmware.dfu
$(ECHO) "Writing $< to the board"
- $(Q)$(DFU_UTIL) -a 0 -D $<
+ $(Q)$(DFU_UTIL) -a 0 -d $(DEVICE) -D $<
$(BUILD)/firmware.dfu: $(BUILD)/firmware.elf
$(ECHO) "Create $@"