Skip to content

Commit c55593c

Browse files
ajarmouni-stcarlescufi
authored andcommitted
board: arm: stm32h747i_disco: flashing
Add the possibility to flash stm32h747i_disco board using west STM32CubeProgrammer runner, for both cores. Signed-off-by: Abderrahmane Jarmouni <[email protected]>
1 parent 7c00472 commit c55593c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

boards/arm/stm32h747i_disco/board.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ board_runner_args(jlink "--device=STM32H747ZI_M4")
99
board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_stm32h747i_disco_m4.cfg")
1010
board_runner_args(openocd --target-handle=_CHIPNAME.cpu1)
1111
endif()
12+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
1213

1314
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
15+
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
1416
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/arm/stm32h747i_disco/doc/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ automatically.
230230

231231
Zephyr flash configuration has been set to meet these default settings.
232232

233+
Alternatively, west `STM32CubeProgrammer`_ runner can be used, after installing
234+
it, to flash applications for both cores. The target core is detected automatically.
235+
236+
.. code-block:: console
237+
238+
$ west flash --runner stm32cubeprogrammer
239+
233240
Flashing an application to STM32H747I M7 Core
234241
---------------------------------------------
235242

0 commit comments

Comments
 (0)