Browse Source

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.
pull/2/head
Uwe Hermann 13 years ago
parent
commit
a3ce2924df
  1. 4
      examples/stm32/f1/Makefile.include
  2. 4
      examples/stm32/f2/Makefile.include

4
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)

4
examples/stm32/f2/Makefile.include

@ -106,7 +106,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 "stm32f2x mass_erase 0" \
-c "flash write_image $(*).hex" \
-c "reset" \
-c "shutdown" $(NULL)
@ -118,7 +118,7 @@ else
-f board/$(OOCD_BOARD).cfg \
-c "ft2232_serial $(OOCD_SERIAL)" \
-c "init" -c "reset init" \
-c "stm32x mass_erase 0" \
-c "stm32f2x mass_erase 0" \
-c "flash write_image $(*).hex" \
-c "reset" \
-c "shutdown" $(NULL)

Loading…
Cancel
Save