Flash with ST-LINK_CLI.

This commit is contained in:
Max Paperno
2018-07-09 12:18:39 -04:00
parent 6110bbce98
commit a611281a01
+6
View File
@@ -513,6 +513,12 @@ if(NOT MSVC)
DEPENDS firmware
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
add_custom_target(flash-stlink
COMMAND ST-LINK_CLI -c SWD -P firmware.bin 0x8000000 -Rst -Q
DEPENDS firmware-size
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
endif()
PrintTargetReport("firmware")