diff --git a/examples/Makefile.rules b/examples/Makefile.rules index ce93756..9decab0 100644 --- a/examples/Makefile.rules +++ b/examples/Makefile.rules @@ -159,8 +159,7 @@ ifeq ($(OOCD_SERIAL),) $(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \ -f board/$(OOCD_BOARD).cfg \ -c "init" -c "reset init" \ - -c "stm32f1x mass_erase 0" \ - -c "flash write_image $(*).hex" \ + -c "flash write_image erase $(*).hex" \ -c "reset" \ -c "shutdown" $(NULL) else @@ -171,8 +170,7 @@ else -f board/$(OOCD_BOARD).cfg \ -c "ft2232_serial $(OOCD_SERIAL)" \ -c "init" -c "reset init" \ - -c "stm32f1x mass_erase 0" \ - -c "flash write_image $(*).hex" \ + -c "flash write_image erase $(*).hex" \ -c "reset" \ -c "shutdown" $(NULL) endif