1.. _stm32f7508_dk_board:
2
3ST STM32F7508-DK Discovery Kit
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- STM32F750N8H6 microcontroller featuring 64 Kbytes of Flash memory and 340 Kbytes of RAM, in BGA216 package
14- On-board ST-LINK/V2-1 supporting USB re-enumeration capability
15- Five power supply options:
16
17  - ST LINK/V2-1
18  - USB FS connector
19  - USB HS connector
20  - VIN from Arduino connector
21  - External 5 V from connector
22
23- Two pushbuttons (user and reset)
24- USB functions: virtual COM port, mass storage, debug port
25- 4.3-inch 480x272 color LCD-TFT with capacitive touch screen
26- SAI audio codec
27- Audio line in and line out jack
28- Two ST MEMS microphones
29- SPDIF RCA input connector
30- 128-Mbit Quad-SPI Flash memory
31- 128-Mbit SDRAM (64 Mbits accessible)
32- Connector for microSD card
33- USB OTG HS with Micro-AB connectors
34- USB OTG FS with Micro-AB connectors
35- Ethernet connector compliant with IEEE-802.3-2002
36
37.. image:: img/stm32f7508_dk.jpg
38     :align: center
39     :alt: STM32F7508-DK
40
41More information about the board can be found at the `32F7508-DK website`_.
42
43Hardware
44********
45
46The STM32F7508-DK Discovery kit provides the following hardware components:
47
48- STM32F750N8H6 in BGA216 package
49- ARM |reg| 32-bit Cortex |reg| -M7 CPU with FPU
50- 216 MHz max CPU frequency
51- 64 KB Flash
52- 320+16+4 KB SRAM
53- GPIO with external interrupt capability
54- 4.3-inch 480x272 color LCD-TFT with capacitive touch screen
55- 3x12-bit ADC
56- 2x12-bit D/A converters
57- RTC
58- Advanced-control Timer
59- General Purpose Timers (17)
60- Watchdog Timers (2)
61- USART/UART (8)
62- I2C (4)
63- SPI (6)
64- 2xSAI (serial audio interface)
65- 2xCAN
66- USB 2.0 OTG FS with on-chip PHY
67- USB 2.0 OTG HS/FS with dedicated DMA, on-chip full-speed PHY and ULPI
68- 10/100 Ethernet MAC with dedicated DMA
69- 8- to 14-bit parallel camera
70- CRC calculation unit
71- True random number generator
72- DMA Controller
73
74More information about STM32F750x8 can be found here:
75
76- `STM32F750x8 on www.st.com`_
77- `STM32F74xxx reference manual`_
78
79Supported Features
80==================
81
82The Zephyr stm32f7508_dk board configuration supports the following hardware features:
83
84+-----------+------------+-------------------------------------+
85| Interface | Controller | Driver/Component                    |
86+===========+============+=====================================+
87| NVIC      | on-chip    | nested vector interrupt controller  |
88+-----------+------------+-------------------------------------+
89| UART      | on-chip    | serial port-polling;                |
90|           |            | serial port-interrupt               |
91+-----------+------------+-------------------------------------+
92| PINMUX    | on-chip    | pinmux                              |
93+-----------+------------+-------------------------------------+
94| GPIO      | on-chip    | gpio                                |
95+-----------+------------+-------------------------------------+
96| FLASH     | on-chip    | flash memory                        |
97+-----------+------------+-------------------------------------+
98| ETHERNET  | on-chip    | Ethernet                            |
99+-----------+------------+-------------------------------------+
100| PWM       | on-chip    | pwm                                 |
101+-----------+------------+-------------------------------------+
102| I2C       | on-chip    | i2c                                 |
103+-----------+------------+-------------------------------------+
104| USB       | on-chip    | usb                                 |
105+-----------+------------+-------------------------------------+
106| SDMMC     | on-chip    | disk access                         |
107+-----------+------------+-------------------------------------+
108| SPI       | on-chip    | spi                                 |
109+-----------+------------+-------------------------------------+
110| QSPI NOR  | on-chip    | off-chip flash                      |
111+-----------+------------+-------------------------------------+
112| FMC       | on-chip    | memc (SDRAM)                        |
113+-----------+------------+-------------------------------------+
114| LTDC      | on-chip    | display                             |
115+-----------+------------+-------------------------------------+
116
117Other hardware features are not yet supported on Zephyr porting.
118
119The default configuration can be found in the defconfig file:
120``boards/arm/stm32f7508_dk/stm32f7508_dk_defconfig``
121
122Pin Mapping
123===========
124
125STM32F7508-DK Discovery kit has 9 GPIO controllers. These controllers are responsible for pin muxing,
126input/output, pull-up, etc.
127
128For mode details please refer to `32F7508-DK board User Manual`_.
129
130Default Zephyr Peripheral Mapping:
131----------------------------------
132
133The STM32F7508 Discovery kit features an Arduino Uno V3 connector. Board is
134configured as follows
135
136- UART_1 TX/RX : PA9/PB7 (ST-Link Virtual Port Com)
137- UART_6 TX/RX : PC6/PC7 (Arduino Serial)
138- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
139- SDMMC_1 D0/D1/D2/D3/CK/CD/CMD: PC8/PC9/PC10/PC11/PC12/PC13/PD2
140- SPI2 NSS/SCK/MISO/MOSI : PA8/PI1/PB14/PB15 (Arduino SPI)
141- PWM_3_CH1 : PB4
142- ETH : PA1, PA2, PA7, PC1, PC4, PC5, PG11, PG13, PG14
143- USER_PB : PI11
144- LD1 : PI1
145- USB DM : PA11
146- USB DP : PA12
147- FMC SDRAM :
148
149   - D0-D15 : PD14/PD15/PD0/PD1/PE7/PE8/PE9/PE10/PE11/PE12/PE13/PE14/PE15/PD8/PD9/PD10
150   - A0-A11 : PF0/PF1/PF2/PF3/PF4/PF5/PF12/PF13/PF14/PF15/PG0/PG1
151   - A14/A15 : PG4/PG5
152   - SDNRAS/SDNCAS : PF11/PG15
153   - NBL0/NBL1 : PE0/PE1
154   - SDCLK/SDNWE/SDCKE0/SDNE0 : PG8/PH5/PC3/PH3
155
156- LTDC :
157
158   - R0-R7 : PI15/PJ0/PJ1/PJ2/PJ3/PJ4/PJ5/PJ6
159   - G0-G7 : PJ7/PJ8/PJ9/PJ10/PJ11/PK0/PK1/PK2
160   - B0-B7 : PJ12/PK13/PJ14/PJ15/PK3/PK4/PK5/PK6
161   - DE/CLK/HSYNC/VSYNC : PK7/PI14/PI12/PI13
162
163
164System Clock
165============
166
167The STM32F7508 System Clock can be driven by an internal or external oscillator,
168as well as by the main PLL clock. By default, the System clock is driven by the PLL
169clock at 216MHz, driven by a 25MHz high speed external clock.
170
171Serial Port
172===========
173
174The STM32F7508-DK Discovery kit has up to 8 UARTs. The Zephyr console output is assigned to UART1
175which connected to the onboard ST-LINK/V2 Virtual COM port interface. Default communication
176settings are 115200 8N1.
177
178Programming and Debugging
179*************************
180
181Applications for the ``stm32f7508_dk`` board configuration can be built and
182flashed in the usual way (see :ref:`build_an_application` and
183:ref:`application_run` for more details).
184
185Flashing
186========
187
188STM32F7508-DK Discovery kit includes an ST-LINK/V2 embedded debug tool interface.
189This interface is supported by the openocd version included in the Zephyr SDK.
190
191Flashing an application to STM32F7508-DK
192-------------------------------------------
193
194First, connect the STM32F746G Discovery kit to your host computer using
195the USB port to prepare it for flashing. Then build and flash your application.
196
197Here is an example for the :ref:`hello_world` application.
198
199.. zephyr-app-commands::
200   :zephyr-app: samples/hello_world
201   :board: stm32f7508_dk
202   :goals: build flash
203
204Run a serial host program to connect with your board:
205
206.. code-block:: console
207
208   $ minicom -D /dev/ttyACM0
209
210You should see the following message on the console:
211
212.. code-block:: console
213
214   Hello World! arm
215
216Debugging
217=========
218
219You can debug an application in the usual way.  Here is an example for the
220:ref:`hello_world` application.
221
222.. zephyr-app-commands::
223   :zephyr-app: samples/hello_world
224   :board: stm32f7508_dk
225   :goals: debug
226
227
228.. _32F7508-DK website:
229   https://www.st.com/en/evaluation-tools/stm32f7508-dk.html
230
231.. _32F7508-DK board User Manual:
232   https://www.st.com/resource/en/user_manual/dm00537062-discovery-kit-for-stm32f7-series-with-stm32f750n8-mcu-stmicroelectronics.pdf
233
234.. _STM32F750x8 on www.st.com:
235   https://www.st.com/resource/en/datasheet/stm32f750z8.pdf
236
237.. _STM32F74xxx reference manual:
238   https://www.st.com/resource/en/reference_manual/dm00124865.pdf
239