Skip to content

Commit cd6c948

Browse files
ajarmouni-stnashif
authored andcommitted
board: arm: nucleo_f746zg: flashing
Add the possibility to flash nucleo-f746zg board using west STM32CubeProgrammer runner. Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
1 parent b903dff commit cd6c948

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

boards/st/nucleo_f746zg/board.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
34
board_runner_args(jlink "--device=STM32F746ZG" "--speed=4000")
45

6+
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
57
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
68
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/st/nucleo_f746zg/doc/index.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,17 @@ Nucleo F746ZG board includes an ST-LINK/V2-1 embedded debug tool interface.
191191
Flashing an application to Nucleo F746ZG
192192
----------------------------------------
193193

194+
The board is configured to be flashed using west `STM32CubeProgrammer`_ runner,
195+
so its installation is required to be able to flash the board.
196+
197+
Alternatively, openocd (provided in Zephyr SDK) or JLink can also be used to
198+
flash the board using the ``--runner`` (or ``-r``) option:
199+
200+
.. code-block:: console
201+
202+
$ west flash --runner openocd
203+
$ west flash --runner jlink
204+
194205
Here is an example for the :ref:`hello_world` application.
195206

196207
Run a serial host program to connect with your Nucleo board.
@@ -235,3 +246,6 @@ You can debug an application in the usual way. Here is an example for the
235246

236247
.. _STM32F746 reference manual:
237248
https://www.st.com/resource/en/reference_manual/dm00124865.pdf
249+
250+
.. _STM32CubeProgrammer:
251+
https://www.st.com/en/development-tools/stm32cubeprog.html

0 commit comments

Comments
 (0)