Skip to content

Commit dae9420

Browse files
Changed default st-flash command flag
1 parent 8ea51ac commit dae9420

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

miosix/cmake/LinkTarget.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
function(miosix_add_program_target TARGET)
2828
get_target_property(PROGRAM_CMDLINE miosix PROGRAM_CMDLINE)
2929
if(PROGRAM_CMDLINE STREQUAL "PROGRAM_CMDLINE-NOTFOUND")
30-
set(PROGRAM_CMDLINE st-flash --reset write <binary> 0x8000000)
30+
set(PROGRAM_CMDLINE st-flash --connect-under-reset write <binary> 0x8000000)
3131
endif()
3232

3333
list(TRANSFORM PROGRAM_CMDLINE REPLACE <binary> ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}.bin)

0 commit comments

Comments
 (0)