File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
+ board_runner_args (stm32cubeprogrammer "--port=swd" "--reset-mode=hw" )
3
4
board_runner_args (jlink "--device=STM32F746ZG" "--speed=4000" )
4
5
6
+ include (${ZEPHYR_BASE} /boards/common/stm32cubeprogrammer.board.cmake )
5
7
include (${ZEPHYR_BASE} /boards/common/openocd.board.cmake )
6
8
include (${ZEPHYR_BASE} /boards/common/jlink.board.cmake )
Original file line number Diff line number Diff line change @@ -191,6 +191,17 @@ Nucleo F746ZG board includes an ST-LINK/V2-1 embedded debug tool interface.
191
191
Flashing an application to Nucleo F746ZG
192
192
----------------------------------------
193
193
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
+
194
205
Here is an example for the :ref: `hello_world ` application.
195
206
196
207
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
235
246
236
247
.. _STM32F746 reference manual :
237
248
https://www.st.com/resource/en/reference_manual/dm00124865.pdf
249
+
250
+ .. _STM32CubeProgrammer :
251
+ https://www.st.com/en/development-tools/stm32cubeprog.html
You can’t perform that action at this time.
0 commit comments