![]() |
STM32Cube
Version 2.0
Create Projects for STM32F7 Series with STM32Cube HAL and STM32CubeMX
|
The CMSIS-Driver MCI requires:
The example below uses correct settings for STM32F746G-Discovery:
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.
Under Connectivity open SDMMC1 Configuration:
| DMA Request Settings | Label | Peripheral | Memory |
|---|---|---|---|
| Mode: Peripheral Flow Control | Increment Address | off | ON |
| Use Fifo ON Threshold: Full | Data Width | WORD | WORD |
| . | Burst Size | 4 Increm.. | 4 Increm.. |
| DMA Request Settings | Label | Peripheral | Memory |
|---|---|---|---|
| Mode: Peripheral Flow Control | Increment Address | off | ON |
| Use Fifo ON Threshold: Full | Data Width | WORD | WORD |
| . | Burst Size | 4 Increm.. | 4 Increm.. |
| Pin Name | Signal on Pin | GPIO mode | GPIO Pull-up/Pull.. | Maximum out | User Label |
|---|---|---|---|---|---|
| PC8 | SDMMC1_D0 | Alternate | No pull-up and no.. | High | . |
| PC9 | SDMMC1_D1 | Alternate | No pull-up and no.. | High | . |
| PC10 | SDMMC1_D2 | Alternate | No pull-up and no.. | High | . |
| PC11 | SDMMC1_D3 | Alternate | No pull-up and no.. | High | . |
| PC12 | SDMMC1_CK | Alternate | No pull-up and no.. | High | . |
| PD2 | SDMMC1_CMD | Alternate | No pull-up and no.. | High | . |
| Interrupt Table | Enable | Preemption Priority | Sub Priority |
|---|---|---|---|
| SDMMC1 global interrupt | ON | 0 | 0 |
| DMA2 stream3 global interrupt | ON | 0 | 0 |
| DMA2 stream6 global interrupt | ON | 0 | 0 |
Click OK to close the SDMMC1 Configuration dialog
| Pin Name | Signal on Pin | GPIO mode | GPIO Pull-up/Pull.. | Maximum out | User Label |
|---|---|---|---|---|---|
| PC13 | n/a | Input mode | No pull-up and no.. | n/a | MemoryCard_CD0 |