From a3ce2924dfe2b7a007a433850fab896ac57ac744 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 2 Nov 2011 22:30:41 +0100 Subject: 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. --- examples/stm32/f1/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/stm32/f1') 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) -- cgit v1.2.3