boards/st/nucleo_f401re/doc/index.rst
.. zephyr:board:: nucleo_f401re
Overview
The Nucleo F401RE board features an ARM Cortex-M4 based STM32F401RE MCU with a wide range of connectivity support and configurations Here are some highlights of the Nucleo F401RE board:
STM32 microcontroller in QFP64 package
Two types of extension resources:
On-board ST-LINK/V2-1 debugger/programmer with SWD connector
Flexible board power supply:
Three LEDs: USB communication (LD1), user LED (LD2), power LED (LD3)
Two push-buttons: USER and RESET
More information about the board can be found at the Nucleo F401RE website_.
Hardware
Nucleo F401RE provides the following hardware components:
More information about STM32F401RE can be found here:
STM32F401RE on www.st.com_STM32F401 reference manual_.. zephyr:board-supported-hw::
Nucleo F401RE Board has 6 GPIO controllers. These controllers are responsible for pin muxing, input/output, pull-up, etc.
.. image:: img/nucleo_f401re_arduino.jpg :align: center :alt: Nucleo F401RE Arduino connectors .. image:: img/nucleo_f401re_morpho.jpg :align: center :alt: Nucleo F401RE Morpho connectors
For more details please refer to STM32 Nucleo-64 board User Manual_.
Nucleo F401RE 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 84MHz, driven by 8MHz high speed external clock.
Nucleo F401RE board has 3 UARTs. The Zephyr console output is assigned to UART2. Default settings are 115200 8N1.
Nucleo F401RE board has up to 3 I2Cs. The default I2C mapping for Zephyr is:
Programming and Debugging
.. zephyr:board-supported-runners::
Nucleo F401RE board includes an ST-LINK/V2-1 embedded debug tool interface.
Applications for the nucleo_f401re board configuration can be built and
flashed in the usual way (see :ref:build_an_application and
:ref:application_run for more details).
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 F401RE to your host computer using the USB port, then run a serial host program to connect with your Nucleo board:
.. code-block:: console
$ minicom -D /dev/ttyACM0
Now build and flash an application. Here is an example for
:zephyr:code-sample:hello_world.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: nucleo_f401re :goals: build flash
You should see the following message on the console:
.. code-block:: console
Hello World! arm
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_f401re :maybe-skip-config: :goals: debug
.. _Nucleo F401RE website: https://www.st.com/en/evaluation-tools/nucleo-f401re.html
.. _STM32 Nucleo-64 board User Manual: https://www.st.com/resource/en/user_manual/dm00105823.pdf
.. _STM32F401RE on www.st.com: https://www.st.com/en/microcontrollers/stm32f401re.html
.. _STM32F401 reference manual: https://www.st.com/resource/en/reference_manual/dm00096844.pdf
.. _STM32CubeProgrammer: https://www.st.com/en/development-tools/stm32cubeprog.html