boards/st/nucleo_h7s3l8/doc/index.rst
.. zephyr:board:: nucleo_h7s3l8
Overview
The STM32 Nucleo-144 board 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, provided by the STM32 microcontroller.
The ST Zio connector, which extends the ARDUINO® Uno V3 connectivity, and the ST morpho headers provide an easy means of expanding the functionality of the Nucleo open development platform with a wide choice of specialized shields. The STM32 Nucleo-144 board does not require any separate probe as it integrates the ST-LINK V3 debugger/programmer.
The STM32 Nucleo-144 board comes with the STM32 comprehensive free software libraries and examples available with the STM32Cube MCU Package.
Key Features
STM32 microcontroller with 64Kbytes of flash and 620Kbytes of RAM in TFBGA225 package
Ethernet compliant with IEEE-802.3-2002
USB USB Device only, USB OTG full speed, or SNK/UFP (full-speed or high-speed mode)
3 user LEDs
2 user and reset push-buttons
32.768 kHz crystal oscillator
Board connectors:
USB with Micro-AB or USB Type-C®
Ethernet RJ45
MIPI20 compatible connector with trace signals
Flexible power-supply options: ST-LINK USB VBUS or external sources
External or internal SMPS to generate Vcore logic supply
On-board ST-LINK/V3 debugger/programmer with USB re-enumeration
capability: mass storage, virtual COM port and debug port
More information about the board can be found at the Nucleo H7S3L8 website_.
Hardware
Nucleo H7S3L8 provides the following hardware components:
The STM32H7S7xx devices are a high-performance microcontrollers family (STM32H7 Series) based on the high-performance Arm® Cortex®-M7 32-bit RISC core. They operate at a frequency of up to 500 MHz.
Core: ARM® 32-bit Cortex®-M7 CPU with FPU.
Performance benchmark:
Security
Clock management:
Power management
RTC with HW calendar, alarms and calibration
Up to 152 fast I/Os, most 5 V-tolerant, up to 10 I/Os with independent supply down to 1.08 V
Up to 16 timers and 2 watchdogs
Memories
Rich analog peripherals (independent supply)
35x communication interfaces
CORDIC for trigonometric functions acceleration
FMAC (filter mathematical accelerator)
CRC calculation unit
Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell™
More information about STM32H7S3 can be found here:
STM32H7S3L8 on www.st.com_STM32H7Sx reference manual_.. zephyr:board-supported-hw::
For more details please refer to STM32H7R/S Nucleo-144 board User Manual_.
The Nucleo H7S3L8 board features a ST Zio connector (extended Arduino Uno V3) and a ST morpho connector. Board is configured as follows:
Nucleo H7S3L8 System Clock could be driven by an internal or external oscillator, as well as the main PLL clock. By default, the System clock is driven by the PLL clock at 600MHz, driven by an 24MHz high-speed external clock.
Nucleo H7S3L8 board has 4 UARTs and 3 USARTs plus one LowPower UART. The Zephyr console output is assigned to UART3. Default settings are 115200 8N1.
In order to test backup SRAM you may want to disconnect VBAT from VDD. You can
do it by removing SB13 jumper on the back side of the board.
The Nucleo H7S3L8 board does not have any onboard CAN transceiver. In order to use the FDCAN bus on this board, an external CAN bus transceiver must be connected to pins PD0 (RX) and PD1 (TX).
Programming and Debugging
.. zephyr:board-supported-runners::
Nucleo H7S3L8 board includes an ST-LINK/V3 embedded debug tool interface.
.. note::
Check if your ST-LINK V3 has newest FW version. It can be done with STM32CubeProgrammer_
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
First, connect the NUCLEO-H7S3L8 to your host computer using the USB port to prepare it for flashing. Then build and flash your application.
Here is an example for the :zephyr:code-sample:hello_world application.
Run a serial host program to connect with your NUCLEO-H7S3L8 board.
.. code-block:: console
$ minicom -b 115200 -D /dev/ttyACM0
or use screen:
.. code-block:: console
$ screen /dev/ttyACM0 115200
Build and flash the application:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: nucleo_h7s3l8 :goals: build flash
You should see the following message on the console:
.. code-block:: console
$ Hello World! nucleo_h7s3l8
Blinky example can also be used:
.. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: nucleo_h7s3l8 :goals: build flash
You can debug an application in the usual way. Here is an example for the
:zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: nucleo_h7s3l8 :maybe-skip-config: :goals: debug
Because of the limited amount of SoC Flash (64KB), you may want to store the application
in external OSPI Flash instead, and run it from there. In that case, the MCUboot bootloader
is needed to chainload the application. A dedicate board variant, ext_flash_app, was created
for this usecase.
:ref:sysbuild makes it possible to build and flash all necessary images needed to run a user application
from external Flash.
The following example shows how to build :zephyr:code-sample:hello_world with Sysbuild enabled:
.. zephyr-app-commands:: :tool: west :zephyr-app: samples/hello_world :board: nucleo_h7s3l8/stm32h7s3xx/ext_flash_app :goals: build :west-args: --sysbuild
By default, Sysbuild creates MCUboot and user application images.
Build directory structure created by Sysbuild is different from traditional Zephyr build. Output is structured by the domain subdirectories:
.. code-block::
build/ ├── hello_world | └── zephyr │ ├── zephyr.elf │ ├── zephyr.hex │ ├── zephyr.bin │ ├── zephyr.signed.bin │ └── zephyr.signed.hex ├── mcuboot │ └── zephyr │ ├── zephyr.elf │ ├── zephyr.hex │ └── zephyr.bin └── domains.yaml
.. note::
With --sysbuild option, MCUboot will be re-built every time the pristine build is used,
but only needs to be flashed once if none of the MCUboot configs are changed.
For more information about the system build please read the :ref:sysbuild documentation.
Both MCUboot and user application images can be flashed by running:
.. code-block:: console
$ west flash
You should see the following message in the serial host program:
.. code-block:: console
*** Booting MCUboot v2.2.0-224-g0a52195c8181 *** *** Using Zephyr OS build v4.3.0-937-ge0490cf53e03 *** I: Starting bootloader I: Image index: 0, Swap type: none I: Image index: 0, Swap type: none I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Boot source: none I: Image index: 0, Swap type: none I: Image index: 0, Swap type: none I: Image index: 0, Swap type: none I: Image index: 0, Swap type: none I: Bootloader chainload address offset: 0x0 I: Image version: v0.0.0 I: Jumping to the first image slot *** Booting Zephyr OS build v4.3.0-937-ge0490cf53e03 *** Hello World! nucleo_h7s3l8/stm32h7s3xx/ext_flash_app
To only flash the user application in the subsequent builds, Use:
.. code-block:: console
$ west flash --domain hello_world
With the default configuration, the board uses MCUboot's Swap-using-offset mode.
To get more information about the different MCUboot operating modes and how to
perform application upgrade, refer to MCUboot design.
To learn more about how to secure the application images stored in external Flash,
refer to MCUboot Encryption.
You can debug the application in external flash using west and GDB.
After flashing MCUboot and the app, execute the following command:
.. code-block:: console
$ west debugserver
Then, open another terminal (don't forget to activate Zephyr's environment) and execute:
.. code-block:: console
$ west attach
.. _Nucleo H7S3L8 website: https://www.st.com/en/evaluation-tools/nucleo-h7s3l8.html
.. _STM32H7R/S Nucleo-144 board User Manual: https://www.st.com/resource/en/user_manual/um3276-stm32h7rx7sx-nucleo144-board-mb1737-stmicroelectronics.pdf
.. _STM32H7S3L8 on www.st.com: https://www.st.com/en/microcontrollers-microprocessors/stm32h7s3l8.html
.. _STM32H7Sx reference manual: https://www.st.com/resource/en/reference_manual/rm0477-stm32h7rx7sx-armbased-32bit-mcus-stmicroelectronics.pdf
.. _OpenOCD installing Debug Version: https://github.com/zephyrproject-rtos/openocd
.. _OpenOCD installing with ST-LINK V3 support: https://mbd.kleier.net/integrating-st-link-v3.html
.. _STM32CubeIDE: https://www.st.com/en/development-tools/stm32cubeide.html
.. _STM32CubeProgrammer: https://www.st.com/en/development-tools/stm32cubeprog.html
.. _MCUboot design: https://docs.mcuboot.com/design.html
.. _MCUboot Encryption: https://docs.mcuboot.com/encrypted_images.html