From 5385b463feb55ca77046100a41ebfc88fd581146 Mon Sep 17 00:00:00 2001 From: Frantisek Burian Date: Fri, 3 Jan 2014 08:47:58 +0100 Subject: [PATCH] [FLASH:OPENOCD] Fixed the flashing function --- examples/Makefile.rules | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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