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.
This commit is contained in:
Uwe Hermann 2011-11-02 22:30:41 +01:00
parent bc320f5453
commit a3ce2924df
2 changed files with 4 additions and 4 deletions

View File

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

View File

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