Skip to content

Commit 9b9d455

Browse files
AlexFabrenashif
authored andcommitted
boards: st: fix sysbuild multi image flash
Problem: When flashing a multi-image project with STLink through sysbuild, the flash utility is told to erase the whole flash between each single image flash. Resulting in a partial flash where only the last image is effectively stored on flash... Correction: A `west flash` must not implicitly perform a mass erase on its own. If a flash erase is required, the option has to be passed manually. The problem is discussed in the following issue: #69582 Due to CI tests errors, the correction is not applied on eval board `b_u585i_iot02a`. See following issue: #75164 Signed-off-by: Alex Fabre <[email protected]>
1 parent c93d6b8 commit 9b9d455

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

boards/st/nucleo_h533re/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
3+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
44

55
board_runner_args(pyocd "--target=stm32h533retx")
66

boards/st/nucleo_h563zi/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
3+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
44

55
board_runner_args(pyocd "--target=stm32h563zitx")
66

boards/st/nucleo_u575zi_q/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
1+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
22
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
33

44
board_runner_args(openocd "--tcl-port=6666")

boards/st/stm32f429i_disc1/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
3+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
44
board_runner_args(jlink "--device=STM32F429ZI" "--speed=4000")
55

66
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

boards/st/stm32h573i_dk/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if(CONFIG_STM32_MEMMAP)
44
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
55
board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H573I-DK-RevB-SFIx.stldr")
66
else()
7-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
7+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
88
endif()
99

1010
board_runner_args(pyocd "--target=stm32h573iikx")

boards/st/stm32h750b_dk/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if(CONFIG_STM32_MEMMAP)
77
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
88
board_runner_args(stm32cubeprogrammer "--extload=MT25TL01G_STM32H750B-DISCO.stldr")
99
else()
10-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw" )
10+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw" )
1111
endif()
1212

1313
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)

boards/st/stm32h7b3i_dk/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if(CONFIG_STM32_MEMMAP)
88
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
99
board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H7B3I-DISCO.stldr")
1010
else()
11-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw" )
11+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw" )
1212
endif()
1313

1414
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)

boards/st/stm32h7s78_dk/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
3+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
44
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
55

66
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)

boards/st/stm32u5a9j_dk/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2023 STMicroelectronics
22
# SPDX-License-Identifier: Apache-2.0
33

4-
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
4+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
55

66
board_runner_args(openocd "--tcl-port=6666")
77
board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable")

0 commit comments

Comments
 (0)