1.. _stm32f723e_disco_board:
2
3ST STM32F723E Discovery
4#######################
5
6Overview
7********
8
9The discovery kit enables a wide diversity of applications taking benefit
10from audio, multi-sensor support, graphics, security, security, video,
11and high-speed connectivity features. Important board features include:
12
13- STM32F723IEK6 microcontroller featuring 512 Kbytes of Flash memory and 256+16+4 Kbytes of RAM, in BGA176 package
14- On-board ST-LINK/V2-1 supporting USB re-enumeration capability
15- TFT LCD 240x240 pixels with touch panel
16- SAI audio codec
17- Audio line in and line out jack
18- Stereo speaker outputs
19- Four ST MEMS microphones
20- Two pushbuttons (user and reset)
21- 512-Mbit Quad-SPI Flash memory
22- 8-Mbit external PSRAM
23- USB OTG HS with Micro-AB connectors
24- USB OTG FS with Micro-AB connectors
25
26.. image:: img/stm32f723e_disco.jpg
27     :align: center
28     :alt: STM32F723E-DISCO
29
30More information about the board can be found at the `32F723E-DISCO website`_.
31
32Hardware
33********
34
35The STM32F723E Discovery kit provides the following hardware components:
36
37- STM32F723IEK6 in BGA176 package
38- ARM |reg| 32-bit Cortex |reg| -M7 CPU with FPU
39- 216 MHz max CPU frequency
40- VDD from 1.8 V to 3.6 V
41- 1 MB Flash
42- 256+16+4 KB SRAM including 64KB of tightly coupled memory
43- GPIO with external interrupt capability
44- 3x12-bit ADC with 24 channels
45- 2x12-bit D/A converters
46- RTC
47- Advanced-control Timer (2)
48- General Purpose Timers (13)
49- Watchdog Timers (2)
50- USART/UART (8)
51- I2C (3)
52- SPI (5)
53- 2xSAI (serial audio interface)
54- SDIO (2)
55- CAN
56- USB 2.0 OTG FS with on-chip PHY
57- USB 2.0 OTG HS/FS with dedicated DMA, on-chip full-speed PHY and on-chip hi-speed PHY
58- CRC calculation unit
59- True random number generator
60- DMA Controller
61
62More information about STM32F723IEK6 can be found here:
63
64- `STM32F723IEK6 on www.st.com`_
65- `STM32F72xxx reference manual`_
66
67Supported Features
68==================
69
70The Zephyr stm32f723e_disco board configuration supports the following hardware features:
71
72+-----------+------------+-------------------------------------+
73| Interface | Controller | Driver/Component                    |
74+===========+============+=====================================+
75| NVIC      | on-chip    | nested vector interrupt controller  |
76+-----------+------------+-------------------------------------+
77| UART      | on-chip    | serial port-polling;                |
78|           |            | serial port-interrupt               |
79+-----------+------------+-------------------------------------+
80| PINMUX    | on-chip    | pinmux                              |
81+-----------+------------+-------------------------------------+
82| GPIO      | on-chip    | gpio                                |
83+-----------+------------+-------------------------------------+
84| I2C       | on-chip    | i2c                                 |
85+-----------+------------+-------------------------------------+
86| SPI       | on-chip    | spi                                 |
87+-----------+------------+-------------------------------------+
88| USB       | on-chip    | USB device                          |
89+-----------+------------+-------------------------------------+
90
91Other hardware features are not yet supported on Zephyr porting.
92
93The default configuration can be found in the defconfig file:
94``boards/arm/stm32f723e_disco/stm32f723e_disco_defconfig``
95
96Pin Mapping
97===========
98
99STM32F723E Discovery kit has 7 GPIO controllers. These controllers are responsible for pin muxing,
100input/output, pull-up, etc.
101
102For mode details please refer to `32F723E-DISCO board User Manual`_.
103
104Default Zephyr Peripheral Mapping:
105----------------------------------
106- UART_2 TX/RX : PA2/PA3 (Arduino Serial)
107- UART_6 TX/RX : PC6/PC7 (ST-Link Virtual Port Com)
108- I2C1 SCL/SDA : PB8/PB9
109- I2C2 SCL/SDA : PH4/PH5 (Arduino I2C)
110- I2C3 SCL/SDA : PA8/PH8
111- SPI1 SCK/MISO/MOSI : PA5/PB4/PB5 (Arduino SPI)
112- LD1 : PA5
113- LD5 : PA7
114- LD6 : PB1
115- OTG_FS_DM : PA11
116- OTG_FS_DP : PA12
117
118System Clock
119============
120
121The STM32F723E System Clock can be driven by an internal or external oscillator,
122as well as by the main PLL clock. By default, the System clock is driven by the PLL
123clock at 216MHz, driven by a 25MHz high speed external clock.
124
125Serial Port
126===========
127
128The STM32F723E Discovery kit has up to 8 UARTs. The Zephyr console output is assigned to UART6
129which connected to the onboard ST-LINK/V2 Virtual COM port interface. Default communication
130settings are 115200 8N1.
131
132Programming and Debugging
133*************************
134
135Applications for the ``stm32f723e_disco`` board configuration can be built and
136flashed in the usual way (see :ref:`build_an_application` and
137:ref:`application_run` for more details).
138
139Flashing
140========
141
142STM32F723E Discovery kit includes an ST-LINK/V2 embedded debug tool interface.
143This interface is supported by the openocd version included in the Zephyr SDK.
144
145Flashing an application to STM32F723E-DISCO
146-------------------------------------------
147
148First, connect the STM32F723E Discovery kit to your host computer using
149the USB port to prepare it for flashing. Then build and flash your application.
150
151Here is an example for the :ref:`hello_world` application.
152
153.. zephyr-app-commands::
154   :zephyr-app: samples/hello_world
155   :board: stm32f723e_disco
156   :goals: build flash
157
158Run a serial host program to connect with your board:
159
160.. code-block:: console
161
162   $ minicom -D /dev/ttyACM0
163
164You should see the following message on the console:
165
166.. code-block:: console
167
168   Hello World! arm
169
170Debugging
171=========
172
173You can debug an application in the usual way.  Here is an example for the
174:ref:`hello_world` application.
175
176.. zephyr-app-commands::
177   :zephyr-app: samples/hello_world
178   :board: stm32f723e_disco
179   :goals: debug
180
181
182.. _32F723E-DISCO website:
183   https://www.st.com/en/evaluation-tools/32f723ediscovery.html
184
185.. _32F723E-DISCO board User Manual:
186   https://www.st.com/resource/en/user_manual/dm00342318.pdf
187
188.. _STM32F723IEK6 on www.st.com:
189   https://www.st.com/en/microcontrollers/stm32f723ie.html
190
191.. _STM32F72xxx reference manual:
192   https://www.st.com/resource/en/reference_manual/dm00305990.pdf
193