boards/st/nucleo_u385rg_q/doc/index.rst
.. zephyr:board:: nucleo_u385rg_q
Overview
The Nucleo U385RG board, featuring an ARM® Cortex®-M33 with TrustZone® based STM32U385RG MCU, provides an affordable and flexible way for users to try out new concepts and build prototypes by choosing from the various combinations of performance and power consumption features. Here are some highlights of the Nucleo U385RG board:
STM32U385RG microcontroller in an LQFP64 or LQFP48 package
Two types of extension resources:
On-board STLINK-V2EC debugger/programmer with USB re-enumeration capability: mass storage, Virtual COM port, and debug port
Flexible board power supply:
Two push-buttons: USER and RESET
32.768 kHz crystal oscillator
Second user LED shared with ARDUINO® Uno V3
External or internal SMPS to generate Vcore logic supply
24 MHz or 48 MHz HSE
User USB Device full speed, or USB SNK/UFP full speed
Cryptography
CAN FD transceiver
Board connectors:
External SMPS experimentation dedicated connector
USB Type-C® , Micro-B, or Mini-B connector for the ST-LINK
USB Type-C® user connector
MIPI® debug connector
CAN FD header
More information about the board can be found at the NUCLEO_U385RG website_.
Hardware
The STM32U385xx devices are an ultra-low-power microcontrollers family (STM32U3 Series) based on the high-performance Arm® Cortex®-M33 32-bit RISC core. They operate at a frequency of up to 96 MHz.
Includes ST state-of-the-art patented technology
Ultra-low-power with FlexPowerControl:
Core:
ART Accelerator:
Power management:
Benchmarks:
Memories:
General-purpose input/outputs:
Clock management:
Security and cryptography:
Up to 15 timers and 2 watchdogs :
Up to 19 communication peripherals:
12-channel GPDMA controller, functional in Sleep and Stop modes (up to Stop 2)
Up to 21 capacitive sensing channels:
Rich analog peripherals (independent supply):
CRC calculation unit
Debug:
ECOPACK2 compliant packages
More information about STM32U385RG can be found here:
STM32U385RG on www.st.com_STM32U385RG reference manual_.. zephyr:board-supported-hw::
Nucleo U385RG Board has 14 GPIO controllers. These controllers are responsible for pin muxing, input/output, pull-up, etc.
For more details please refer to STM32U385RG board user manual_.
Nucleo U385RG System Clock could be driven by internal or external oscillator, as well as main PLL clock. By default System clock is driven by PLL clock at 48MHz, driven by 4MHz medium speed internal oscillator.
Nucleo U385RG board has 4 U(S)ARTs, 1 LPUART. The Zephyr console output is assigned to USART1. Default settings are 115200 8N1.
The STM32U385RG_Q does not have an onboard CAN transceiver. In
order to use the CAN bus on the this board, an external CAN bus
transceiver must be connected to PA11 (FDCAN1_RX) and PA12
(FDCAN1_TX).
Programming and Debugging
.. zephyr:board-supported-runners::
Nucleo U385RG board includes an ST-LINK/V3 embedded debug tool interface. This probe allows to flash the board using various tools.
The board is configured to be flashed using west STM32CubeProgrammer_ runner,
so its :ref:installation <stm32cubeprog-flash-host-tools> is required.
Alternatively, JLink or pyOCD can also be used to flash the board using
the --runner (or -r) option:
.. code-block:: console
$ west flash --runner pyocd $ west flash --runner jlink
For pyOCD, additional target information needs to be installed by executing the following pyOCD commands:
.. code-block:: console
$ pyocd pack --update $ pyocd pack --install stm32u3
Connect the Nucleo U385RG 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_u385rg_q :goals: build flash
You should see the following message on the console:
.. code-block:: console
Hello World! nucleo_u385rg_q
Default debugger for this board is OpenOCD. It can be used in the usual way.
Here is an example for the :zephyr:code-sample:blinky application.
.. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: nucleo_u385rg_q :goals: debug
Note: Check the build/tfm directory to ensure that the commands required by these scripts
(readlink, etc.) are available on your system. Please also check STM32_Programmer_CLI
(which is used for initialization) is available in the PATH.
.. _NUCLEO_U385RG website: https://www.st.com/en/evaluation-tools/nucleo-u385rg.html
.. _STM32U385RG board user manual: https://www.st.com/resource/en/user_manual/um3062-stm32u3u5-nucleo64-board-mb1841-stmicroelectronics.pdf
.. _STM32U385RG on www.st.com: https://www.st.com/en/microcontrollers-microprocessors/stm32u385rg
.. _STM32U385RG reference manual: https://www.st.com/resource/en/reference_manual/rm0487-stm32u3-series-armbased-32bit-mcus-stmicroelectronics.pdf
.. _STM32CubeProgrammer: https://www.st.com/en/development-tools/stm32cubeprog.html