Skip to content

Commit 516899c

Browse files
erwangogalak
authored andcommitted
boards: nucleo_l4r5zi: Add flash & debug support
Following introduction of zephyr sdk0.10 and openocd branch from from 20190130, stm32l4+ SoC support is now available and flash and debug operations are available on nucleo_l4r5zi board. Fixes 12094 Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 844c2ad commit 516899c

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

boards/arm/nucleo_l4r5zi/doc/index.rst

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,28 @@ Ethernet over USB is configured as the default network interface (EEM)
218218
Programming and Debugging
219219
*************************
220220

221-
Currently, the usual way of programming and debugging does not
222-
exist. This will hopefully be added to a future version of the SDK. In
223-
the meantime, the `STM32 ST-LINK utility`_ program can be used by
224-
connecting CN1 to your PC and selecting the zephyr.bin file to flash.
221+
Connect the Nucleo L4R5ZI to your host computer using the USB port.
222+
Then build and flash an application. Here is an example for the
223+
:ref:`hello_world` application.
224+
225+
Run a serial host program to connect with your Nucleo board:
226+
227+
.. code-block:: console
228+
229+
$ minicom -D /dev/ttyACM0
230+
231+
Then build and flash the application.
232+
233+
.. zephyr-app-commands::
234+
:zephyr-app: samples/hello_world
235+
:board: nucleo_l4r5zi
236+
:goals: build flash
237+
238+
You should see the following message on the console:
239+
240+
.. code-block:: console
241+
242+
Hello World! arm
225243
226244
.. _Nucleo L4R5ZI website:
227245
http://www.st.com/en/evaluation-tools/nucleo-l4r5zi.html
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
source [find board/st_nucleo_l4.cfg]
2+
3+
$_TARGETNAME configure -event gdb-attach {
4+
echo "Debugger attaching: halting execution"
5+
reset halt
6+
gdb_breakpoint_override hard
7+
}
8+
9+
$_TARGETNAME configure -event gdb-detach {
10+
echo "Debugger detaching: resuming execution"
11+
resume
12+
}

0 commit comments

Comments
 (0)