Skip to content

Commit 1a72aab

Browse files
Changed default st-flash command flags
1 parent a2f18a9 commit 1a72aab

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ list(APPEND CXXFLAGS_BASE -D_BOARD_STM32F4DISCOVERY)
8080
# built. Use <binary> or <hex> as placeolders, they will be replaced by the
8181
# build systems with the binary or hex file path repectively.
8282
# If a command is not specified, the build system will fallback to st-flash
83-
set(PROGRAM_CMDLINE qstlink2 -cqewV <binary>)
83+
# set(PROGRAM_CMDLINE st-flash --connect-under-reset --reset write <binary> 0x0000000)

miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ list(APPEND CXXFLAGS_BASE -D_BOARD_STM32F429ZI_STM32F4DISCOVERY)
8787
# built. Use <binary> or <hex> as placeolders, they will be replaced by the
8888
# build systems with the binary or hex file path repectively.
8989
# If a command is not specified, the build system will fallback to st-flash
90-
set(PROGRAM_CMDLINE qstlink2 -cqewV <binary>)
90+
# set(PROGRAM_CMDLINE st-flash --connect-under-reset --reset write <binary> 0x0000000)

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 --reset write <binary> 0x0000000)
3131
endif()
3232

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

0 commit comments

Comments
 (0)