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: zephyrproject-rtos/zephyr#69582 Due to CI tests errors, the correction is not applied on eval board `b_u585i_iot02a`. See following issue: zephyrproject-rtos/zephyr#75164 Signed-off-by: Alex Fabre <alex.fabre@rtone.fr>
This commit is contained in:
parent
c93d6b8559
commit
9b9d455f02
9 changed files with 9 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
|
|
||||||
board_runner_args(pyocd "--target=stm32h533retx")
|
board_runner_args(pyocd "--target=stm32h533retx")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
|
|
||||||
board_runner_args(pyocd "--target=stm32h563zitx")
|
board_runner_args(pyocd "--target=stm32h563zitx")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
|
|
||||||
board_runner_args(openocd "--tcl-port=6666")
|
board_runner_args(openocd "--tcl-port=6666")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
board_runner_args(jlink "--device=STM32F429ZI" "--speed=4000")
|
board_runner_args(jlink "--device=STM32F429ZI" "--speed=4000")
|
||||||
|
|
||||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ if(CONFIG_STM32_MEMMAP)
|
||||||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H573I-DK-RevB-SFIx.stldr")
|
board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H573I-DK-RevB-SFIx.stldr")
|
||||||
else()
|
else()
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
board_runner_args(pyocd "--target=stm32h573iikx")
|
board_runner_args(pyocd "--target=stm32h573iikx")
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ if(CONFIG_STM32_MEMMAP)
|
||||||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
board_runner_args(stm32cubeprogrammer "--extload=MT25TL01G_STM32H750B-DISCO.stldr")
|
board_runner_args(stm32cubeprogrammer "--extload=MT25TL01G_STM32H750B-DISCO.stldr")
|
||||||
else()
|
else()
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw" )
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw" )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ if(CONFIG_STM32_MEMMAP)
|
||||||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H7B3I-DISCO.stldr")
|
board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H7B3I-DISCO.stldr")
|
||||||
else()
|
else()
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw" )
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw" )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
|
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
|
||||||
|
|
||||||
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Copyright (c) 2023 STMicroelectronics
|
# Copyright (c) 2023 STMicroelectronics
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
board_runner_args(stm32cubeprogrammer "--erase" "--port=swd" "--reset-mode=hw")
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
|
|
||||||
board_runner_args(openocd "--tcl-port=6666")
|
board_runner_args(openocd "--tcl-port=6666")
|
||||||
board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable")
|
board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue