boards/arduino/portenta_h7/doc/index.rst
.. zephyr:board:: arduino_portenta_h7
Overview
The Portenta H7 enables a wide diversity of applications taking benefit from Computer Vision, PLCs, Robotics controller, High-end industrial machinery and high-speed booting computation (ms).
The board includes an STM32H747XI SoC with a high-performance DSP, Arm Cortex-M7 + Cortex-M4 MCU, with 2MBytes of Flash memory, 1MB RAM, 480 MHz CPU, Art Accelerator, L1 cache, external memory interface, large set of peripherals, SMPS, and MIPI-DSI.
Additionally, the board features:
More information about the board can be found at the ARDUINO_PORTENTA_H7 website_.
More information about STM32H747XIH6 can be found here:
STM32H747XI on www.st.com_STM32H747xx reference manual_STM32H747xx datasheet_.. zephyr:board-supported-hw::
The high precision low speed external (LSE) clock is only fully supported on
boards with hardware revision 4.10 or greater. By default the internal source
is used; to enable the use of the external oscillator, manually specify the
hardware revision at build time (see :ref:application_board_version for
information on how to build for specific revisions of the board).
Applications that intend to use BLE must specify hardware revision at build time.
Fetch Binary Blobs
The board Bluetooth/WiFi module requires fetching some binary blob files, to do that run the command:
.. code-block:: console
west blobs fetch hal_infineon
The dual core nature of STM32H747 SoC requires sharing HW resources between the two cores. This is done in 3 ways:
Building and Flashing
.. zephyr:board-supported-runners::
Applications for the arduino_portenta_h7 board should be built per core target,
using either arduino_portenta_h7_m7 or arduino_portenta_h7_m4 as the target.
See :ref:build_an_application for more information about application builds.
This board requires dfu-utils for flashing. It is recommended to use at least
v0.8 of dfu-util_. The package available in debian/ubuntu can be quite old, so you might
have to build dfu-util from source.
First, connect the Arduino Portenta H7 board to your host computer using the USB port to prepare it for flashing. Double tap the button to put the board into the Arduino Bootloader mode. Then build and flash your application.
Here is an example for the :zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: arduino_portenta_h7/stm32h747xx/m7 :goals: build flash
Run a serial host program to connect with your board:
.. code-block:: console
$ minicom -D /dev/ttyACM0
You should see the following message on the console:
.. code-block:: console
Hello World! arduino_portenta_h7
Similarly, you can build and flash samples on the M4 target. For this, please take care of the resource sharing (UART port used for console for instance).
Here is an example for the :zephyr:code-sample:blinky application on M4 core.
.. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: arduino_portenta_h7/stm32h747xx/m4 :goals: build flash
.. _ARDUINO_PORTENTA_H7 website: https://docs.arduino.cc/hardware/portenta-h7
.. _STM32H747XI on www.st.com: https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus/stm32-high-performance-mcus/stm32h7-series/stm32h747-757/stm32h747xi.html
.. _STM32H747xx reference manual: https://www.st.com/resource/en/reference_manual/dm00176879.pdf
.. _STM32H747xx datasheet: https://www.st.com/resource/en/datasheet/stm32h747xi.pdf
.. _dfu-util: http://dfu-util.sourceforge.net/build.html