Skip to content

Commit

Permalink
Changed default st-flash command flags
Browse files Browse the repository at this point in the history
  • Loading branch information
NidasioAlberto committed Jun 18, 2024
1 parent a2f18a9 commit 1a72aab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ list(APPEND CXXFLAGS_BASE -D_BOARD_STM32F4DISCOVERY)
# built. Use <binary> or <hex> as placeolders, they will be replaced by the
# build systems with the binary or hex file path repectively.
# If a command is not specified, the build system will fallback to st-flash
set(PROGRAM_CMDLINE qstlink2 -cqewV <binary>)
# set(PROGRAM_CMDLINE st-flash --connect-under-reset --reset write <binary> 0x0000000)
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ list(APPEND CXXFLAGS_BASE -D_BOARD_STM32F429ZI_STM32F4DISCOVERY)
# built. Use <binary> or <hex> as placeolders, they will be replaced by the
# build systems with the binary or hex file path repectively.
# If a command is not specified, the build system will fallback to st-flash
set(PROGRAM_CMDLINE qstlink2 -cqewV <binary>)
# set(PROGRAM_CMDLINE st-flash --connect-under-reset --reset write <binary> 0x0000000)
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 --reset write <binary> 0x0000000)
endif()

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

0 comments on commit 1a72aab

Please sign in to comment.