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>
This commit is contained in:
parent
b903dff44f
commit
cd6c948465
2 changed files with 16 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||||
board_runner_args(jlink "--device=STM32F746ZG" "--speed=4000")
|
board_runner_args(jlink "--device=STM32F746ZG" "--speed=4000")
|
||||||
|
|
||||||
|
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
||||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||||
|
|
|
@ -191,6 +191,17 @@ Nucleo F746ZG board includes an ST-LINK/V2-1 embedded debug tool interface.
|
||||||
Flashing an application to Nucleo F746ZG
|
Flashing an application to Nucleo F746ZG
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
|
The board is configured to be flashed using west `STM32CubeProgrammer`_ runner,
|
||||||
|
so its installation is required to be able to flash the board.
|
||||||
|
|
||||||
|
Alternatively, openocd (provided in Zephyr SDK) or JLink can also be used to
|
||||||
|
flash the board using the ``--runner`` (or ``-r``) option:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ west flash --runner openocd
|
||||||
|
$ west flash --runner jlink
|
||||||
|
|
||||||
Here is an example for the :ref:`hello_world` application.
|
Here is an example for the :ref:`hello_world` application.
|
||||||
|
|
||||||
Run a serial host program to connect with your Nucleo board.
|
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
|
||||||
|
|
||||||
.. _STM32F746 reference manual:
|
.. _STM32F746 reference manual:
|
||||||
https://www.st.com/resource/en/reference_manual/dm00124865.pdf
|
https://www.st.com/resource/en/reference_manual/dm00124865.pdf
|
||||||
|
|
||||||
|
.. _STM32CubeProgrammer:
|
||||||
|
https://www.st.com/en/development-tools/stm32cubeprog.html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue