From dae94207d5c2bf9bd517250b8734b7ccf6ce0e02 Mon Sep 17 00:00:00 2001 From: Alberto Nidasio Date: Thu, 6 Jun 2024 21:38:23 +0200 Subject: [PATCH] Changed default `st-flash` command flag --- miosix/cmake/LinkTarget.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miosix/cmake/LinkTarget.cmake b/miosix/cmake/LinkTarget.cmake index 63b29ffd7..98f104286 100644 --- a/miosix/cmake/LinkTarget.cmake +++ b/miosix/cmake/LinkTarget.cmake @@ -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 0x8000000) + set(PROGRAM_CMDLINE st-flash --connect-under-reset write 0x8000000) endif() list(TRANSFORM PROGRAM_CMDLINE REPLACE ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}.bin)