aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorUwe Hermann2009-07-17 23:03:42 +0200
committerUwe Hermann2009-07-17 23:03:42 +0200
commite04cec3b5d6fed6fab7ed5a606b2777508921536 (patch)
tree8f8aba7400ea8f0cb6c3bc83806055bee74f39d2 /example
parent9385e693442f4cb79637c14198f279a5187c14af (diff)
Add 'make flash' target using recent OpenOCD versions.
Diffstat (limited to 'example')
-rw-r--r--example/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/example/Makefile b/example/Makefile
index 3307dd7..d517a06 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -70,5 +70,13 @@ clean:
@printf " CLEAN $(BINARY).list\n"
$(Q)rm -f $(BINARY).list
+flash:
+ $(Q)openocd -f /usr/share/openocd/scripts/interface/jtagkey-tiny.cfg \
+ -f /usr/share/openocd/scripts/board/olimex_stm32_h103.cfg \
+ -c "init" -c "reset halt" \
+ -c "flash write_image erase blink.bin 0x08000000" \
+ -c "resume 0x08000000" \
+ -c "shutdown"
+
.PHONY: images clean