boards/st/nucleo_l4r5zi/doc/index.rst
.. zephyr:board:: nucleo_l4r5zi
Overview
The Nucleo L4R5ZI board features an ARM Cortex-M4 based STM32L4R5ZI MCU with a wide range of connectivity support and configurations. Here are some highlights of the Nucleo L4R5ZI board:
STM32 microcontroller in LQFP144 package
Two types of extension resources:
On-board ST-LINK/V2-1 debugger/programmer with SWD connector
Flexible board power supply:
Three User LEDs: LD1 (Green), LD2 (Blue), LD3 (Red)
Two push-buttons: USER and RESET
More information about the board can be found at the Nucleo L4R5ZI website_.
Hardware
The STM32L4R5ZI SoC provides the following hardware IPs:
Ultra-low-power with FlexPowerControl (down to 130 nA Standby mode and 100 uA/MHz run mode)
Core: ARM® 32-bit Cortex®-M4 CPU with FPU, adaptive real-time accelerator (ART Accelerator) allowing 0-wait-state execution from Flash memory, frequency up to 120 MHz, MPU, 150 DMIPS/1.25 DMIPS/MHz (Dhrystone 2.1), and DSP instructions
Clock Sources:
RTC with HW calendar, alarms and calibration
Up to 24 capacitive sensing channels: support touchkey, linear and rotary touch sensors
Advanced graphics features
16x timers
Up to 136 fast I/Os, most 5 V-tolerant, up to 14 I/Os with independent supply down to 1.08 V
Memories
4x digital filters for sigma delta modulator
Rich analog peripherals (independent supply)
20x communication interfaces
14-channel DMA controller
True random number generator
CRC calculation unit, 96-bit unique ID
8- to 14-bit camera interface up to 32 MHz (black and white) or 10 MHz (color)
Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell (ETM)
More information about STM32L4R5ZI can be found here:
STM32L4R5ZI on www.st.com_STM32L4R5 reference manual_.. zephyr:board-supported-hw::
Nucleo L4R5ZI Board has 8 GPIO controllers. These controllers are responsible for pin muxing, input/output, pull-up, etc.
.. image:: img/nucleo144_layout.jpg :align: center :alt: Nucleo L4R5ZI Arduino connectors
For more details please refer to STM32 Nucleo-144 board User Manual_.
.. rst-class:: rst-columns
Nucleo L4R5ZI System Clock could be driven by internal or external oscillator, as well as main PLL clock. By default, the System clock is driven by the PLL clock at 80MHz, driven by a 16MHz high speed internal oscillator. The clock can be boosted to 120MHz if boost mode is selected.
Nucleo L4R5ZI board has 5 U(S)ARTs. The Zephyr console output is assigned to UART2. Default settings are 115200 8N1.
Ethernet over USB is configured as the default network interface (EEM)
Programming and Debugging
.. zephyr:board-supported-runners::
The NUCLEO-L4R5ZI board includes a ST-LINK/V2 embedded debug tool interface.
The board is configured to be flashed using west STM32CubeProgrammer_ runner,
so its :ref:installation <stm32cubeprog-flash-host-tools> is required.
Alternatively, OpenOCD 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
Connect the Nucleo L4R5ZI to your host computer using the USB port. Then build and flash an application.
Here is an example for the :zephyr:code-sample:hello_world application.
Run a serial host program to connect with your Nucleo board:
.. code-block:: console
$ minicom -D /dev/ttyACM0
Then build and flash the application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: nucleo_l4r5zi :goals: build flash
You should see the following message on the console:
.. code-block:: console
Hello World! arm
.. _Nucleo L4R5ZI website: https://www.st.com/en/evaluation-tools/nucleo-l4r5zi.html
.. _STM32 Nucleo-144 board User Manual: https://www.st.com/resource/en/user_manual/dm00368330.pdf
.. _STM32L4R5ZI on www.st.com: https://www.st.com/en/microcontrollers/stm32l4r5zi.html
.. _STM32L4R5 reference manual: https://www.st.com/resource/en/reference_manual/DM00310109.pdf
.. _STM32 ST-LINK utility: https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-link004.html
.. _STM32CubeProgrammer: https://www.st.com/en/development-tools/stm32cubeprog.html