[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 \
|
$(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \
|
||||||
-f board/$(OOCD_BOARD).cfg \
|
-f board/$(OOCD_BOARD).cfg \
|
||||||
-c "init" -c "reset init" \
|
-c "init" -c "reset init" \
|
||||||
-c "stm32f1x mass_erase 0" \
|
-c "flash write_image erase $(*).hex" \
|
||||||
-c "flash write_image $(*).hex" \
|
|
||||||
-c "reset" \
|
-c "reset" \
|
||||||
-c "shutdown" $(NULL)
|
-c "shutdown" $(NULL)
|
||||||
else
|
else
|
||||||
@@ -171,8 +170,7 @@ else
|
|||||||
-f board/$(OOCD_BOARD).cfg \
|
-f board/$(OOCD_BOARD).cfg \
|
||||||
-c "ft2232_serial $(OOCD_SERIAL)" \
|
-c "ft2232_serial $(OOCD_SERIAL)" \
|
||||||
-c "init" -c "reset init" \
|
-c "init" -c "reset init" \
|
||||||
-c "stm32f1x mass_erase 0" \
|
-c "flash write_image erase $(*).hex" \
|
||||||
-c "flash write_image $(*).hex" \
|
|
||||||
-c "reset" \
|
-c "reset" \
|
||||||
-c "shutdown" $(NULL)
|
-c "shutdown" $(NULL)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user