[FLASH:OPENOCD] Fixed the flashing function

This commit is contained in:
Frantisek Burian
2014-01-03 08:47:58 +01:00
parent 95fe484c42
commit 5385b463fe

View File

@@ -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