1.. zephyr:board:: nucleo_f413zh
2
3Overview
4********
5
6The Nucleo F413ZH board features an ARM Cortex-M4 based STM32F413ZH MCU
7with a wide range of connectivity support and configurations. Here are
8some highlights of the Nucleo F413ZH board:
9
10- STM32 microcontroller in LQFP144 package
11- Two types of extension resources:
12
13  - ST Zio connector including: support for Arduino* Uno V3 connectivity
14    (A0 to A5, D0 to D15) and additional signals exposing a wide range of
15    peripherals
16  - ST morpho extension pin headers for full access to all STM32 I/Os
17
18- On-board ST-LINK/V2-1 debugger/programmer with SWD connector
19- Flexible board power supply:
20
21  - 5 V from ST-LINK/V2-1 USB VBUS
22  - External power sources: 3.3 V and 7 - 12 V on ST Zio or ST morpho
23    connectors, 5 V on ST morpho connector
24
25- Three user LEDs
26- Two push-buttons: USER and RESET
27
28More information about the board can be found at the `Nucleo F413ZH website`_.
29
30Hardware
31********
32
33Nucleo F413ZH provides the following hardware components:
34
35- STM32F413ZHT6 in LQFP144 package
36- ARM |reg| 32-bit Cortex |reg| -M4 CPU with FPU
37- 100 MHz max CPU frequency
38- VDD from 1.7 V to 3.6 V
39- 1.5 MB Flash
40- 320 KB SRAM
41- GPIO with external interrupt capability
42- 2 12-bit ADC with 16 channels, with FIFO and burst support
43- RTC
44- 14 General purpose timers
45- 2 watchdog timers (independent and window)
46- SysTick timer
47- USART/UART (10)
48- I2C (4)
49- SPI (5)
50- SDIO
51- USB 2.0 OTG FS
52- DMA Controller
53- CRC calculation unit
54
55More information about STM32F413ZH can be found here:
56
57- `STM32F413ZH on www.st.com`_
58- `STM32F413/423 reference manual`_
59
60Supported Features
61==================
62
63.. zephyr:board-supported-hw::
64
65Connections and IOs
66===================
67
68Nucleo F413ZH Board has 8 GPIO controllers. These controllers are responsible for pin muxing,
69input/output, pull-up, etc.
70
71Available pins:
72---------------
73.. image:: img/nucleo_f413zh_zio_left.jpg
74   :align: center
75   :alt: Nucleo F413ZH ZIO connectors (left)
76.. image:: img/nucleo_f413zh_zio_right.jpg
77   :align: center
78   :alt: Nucleo F413ZH ZIO connectors (right)
79.. image:: img/nucleo_f413zh_morpho_left.jpg
80   :align: center
81   :alt: Nucleo F413ZH Morpho connectors (left)
82.. image:: img/nucleo_f413zh_morpho_right.jpg
83   :align: center
84   :alt: Nucleo F413ZH Morpho connectors (right)
85
86For more details please refer to `STM32 Nucleo-144 board User Manual`_.
87
88Default Zephyr Peripheral Mapping:
89----------------------------------
90
91- UART_3 TX/RX : PD8/PD9 (ST-Link Virtual Port Com)
92- UART_6 TX/RX : PG14/PG9 (Arduino Serial)
93- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
94- SPI1 NSS/SCK/MISO/MOSI : PD14/PA5/PA6/PA7 (Arduino SPI)
95- PWM_2_CH1 : PA0
96- USB_DM : PA11
97- USB_DP : PA12
98- USER_PB : PC13
99- LD1 : PB0
100- LD2 : PB7
101- LD3 : PB14
102
103System Clock
104------------
105
106Nucleo F413ZH System Clock could be driven by internal or external oscillator,
107as well as main PLL clock. By default System clock is driven by PLL clock at 96MHz,
108driven by 8MHz high speed external clock.
109
110Serial Port
111-----------
112
113Nucleo F413ZH board has 10 UARTs. The Zephyr console output is assigned to UART3.
114Default settings are 115200 8N1.
115
116USB
117===
118Nucleo F413ZH board has a USB OTG dual-role device (DRD) controller that
119supports both device and host functions through its micro USB connector
120(USB USER). Only USB device function is supported in Zephyr at the moment.
121
122
123Programming and Debugging
124*************************
125
126.. zephyr:board-supported-runners::
127
128Nucleo F413ZH board includes an ST-LINK/V2-1 embedded debug tool interface.
129
130Flashing
131========
132
133The board is configured to be flashed using west `STM32CubeProgrammer`_ runner,
134so its :ref:`installation <stm32cubeprog-flash-host-tools>` is required.
135
136Alternatively, OpenOCD or JLink can also be used to flash the board using
137the ``--runner`` (or ``-r``) option:
138
139.. code-block:: console
140
141   $ west flash --runner openocd
142   $ west flash --runner jlink
143
144
145.. _Nucleo F413ZH website:
146   https://www.st.com/en/evaluation-tools/nucleo-f413zh.html
147
148.. _STM32 Nucleo-144 board User Manual:
149   https://www.st.com/resource/en/user_manual/dm00244518.pdf
150
151.. _STM32F413ZH on www.st.com:
152   https://www.st.com/en/microcontrollers/stm32f413zh.html
153
154.. _STM32F413/423 reference manual:
155   https://www.st.com/resource/en/reference_manual/dm00305666.pdf
156
157.. _STM32CubeProgrammer:
158   https://www.st.com/en/development-tools/stm32cubeprog.html
159