Skip to content

Commit

Permalink
Changed default st-flash command flag
Browse files Browse the repository at this point in the history
  • Loading branch information
NidasioAlberto committed Jun 6, 2024
1 parent 8ea51ac commit dae9420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miosix/cmake/LinkTarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
function(miosix_add_program_target TARGET)
get_target_property(PROGRAM_CMDLINE miosix PROGRAM_CMDLINE)
if(PROGRAM_CMDLINE STREQUAL "PROGRAM_CMDLINE-NOTFOUND")
set(PROGRAM_CMDLINE st-flash --reset write <binary> 0x8000000)
set(PROGRAM_CMDLINE st-flash --connect-under-reset write <binary> 0x8000000)
endif()

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

0 comments on commit dae9420

Please sign in to comment.