diff --git a/examples/stm32/f1/Makefile.include b/examples/stm32/f1/Makefile.include index cf8644f1..b7046d0b 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) diff --git a/examples/stm32/f2/Makefile.include b/examples/stm32/f2/Makefile.include index aa9a1596..03452980 100644 --- a/examples/stm32/f2/Makefile.include +++ b/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)