aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/Makefile.include
diff options
context:
space:
mode:
authorUwe Hermann2011-11-02 22:30:41 +0100
committerUwe Hermann2011-11-02 22:30:41 +0100
commita3ce2924dfe2b7a007a433850fab896ac57ac744 (patch)
tree327f8308d3fddacde2c282adc9f883c4684f26c4 /examples/stm32/f1/Makefile.include
parentbc320f545325e5e2b9f29767c553e8b5dbb24936 (diff)
stm32f1/f2: Update to recent OpenOCD syntax.
Newer versions of OpenOCD expect stm32f1x mass_erase 0 or stm32f2x mass_erase 0 instead of stm32x mass_erase 0 So far, there doesn't seem to be an explicit F4 command, so leave that untouched for now.
Diffstat (limited to 'examples/stm32/f1/Makefile.include')
-rw-r--r--examples/stm32/f1/Makefile.include4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32/f1/Makefile.include b/examples/stm32/f1/Makefile.include
index cf8644f..b7046d0 100644
--- a/examples/stm32/f1/Makefile.include
+++ b/examples/stm32/f1/Makefile.include
@@ -104,7 +104,7 @@ ifeq ($(OOCD_SERIAL),)
$(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \
-f board/$(OOCD_BOARD).cfg \
-c "init" -c "reset init" \
- -c "stm32x mass_erase 0" \
+ -c "stm32f1x mass_erase 0" \
-c "flash write_image $(*).hex" \
-c "reset" \
-c "shutdown" $(NULL)
@@ -116,7 +116,7 @@ else
-f board/$(OOCD_BOARD).cfg \
-c "ft2232_serial $(OOCD_SERIAL)" \
-c "init" -c "reset init" \
- -c "stm32x mass_erase 0" \
+ -c "stm32f1x mass_erase 0" \
-c "flash write_image $(*).hex" \
-c "reset" \
-c "shutdown" $(NULL)