[FLASH:OPENOCD] Fixed the flashing function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user