aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorUwe Hermann2009-07-18 05:00:48 +0200
committerUwe Hermann2009-07-18 05:00:48 +0200
commit10890b3f159995bcf28a88816c6ec83d04e7c89f (patch)
treefe6b444dfc7d88ce4e9830bd859fc4b7d03ebc63 /example
parent3b6809413bb14ce6a612fd05a8203c262db748ca (diff)
Don't use OpenOCD's "resume" command, only "reset" will work correctly.
Also, make the 'flash' target depend on 'images'.
Diffstat (limited to 'example')
-rw-r--r--example/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/Makefile b/example/Makefile
index 0ab8309..b117d38 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -71,12 +71,13 @@ clean:
@printf " CLEAN $(BINARY).list\n"
$(Q)rm -f $(BINARY).list
-flash:
+flash: images
+ @# IMPORTANT: Don't use "resume", only "reset" will work correctly!
$(Q)$(OPENOCD) -f interface/jtagkey-tiny.cfg \
-f board/olimex_stm32_h103.cfg \
-c "init" -c "reset halt" \
-c "flash write_image erase $(BINARY).bin 0x08000000" \
- -c "resume 0x08000000" \
+ -c "reset" \
-c "shutdown"
.PHONY: images clean