Hardware resource relating to driver instance is shown in the table below:
| Driver Instance | Hardware Resource |
|---|---|
| Driver_MCI0 | SDMMC1 |
| Driver_MCI1 | SDMMC2 |
The MCI driver requires:
Optional configuration:
These settings are relevant for this board, for different board please refer to the board schematic for proper configuration.
Link to STM32U575I-EV board schematic.
Required peripherals for the STM32U575I-EV board are listed in the table below:
| Peripheral | Mode | Description |
|---|---|---|
| SDMMC1 | SD 4 bits Wide bus | SDMMC1 Controller |
| PC8 | Alternate Function Push Pull | SDMMC1_D0 Pin |
| PC9 | Alternate Function Push Pull | SDMMC1_D1 Pin |
| PC10 | Alternate Function Push Pull | SDMMC1_D2 Pin |
| PC11 | Alternate Function Push Pull | SDMMC1_D3 Pin |
| PC12 | Alternate Function Push Pull | SDMMC1_CK Pin |
| PD2 | Alternate Function Push Pull | SDMMC1_CMD Pin |
| PI0 | GPIO_Input | Card Detect Pin |
| Pin | Functionality |
|---|---|
| PC8 | SDMMC1_D0 |
| PC9 | SDMMC1_D1 |
| PC10 | SDMMC1_D2 |
| PC11 | SDMMC1_D3 |
| PC12 | SDMMC1_CK |
| PD2 | SDMMC1_CMD |
| PI0 | GPIO_Input |
Under Categories: Connectivity select SDMMC1:
Mode:
Configuration:
| Pin Name | Signal on Pin | Pin Context.. | Pin Priv.. | GPIO output.. | GPIO mode | GPIO Pull-up/Pull.. | Maximum out.. | Fast Mode | User Label |
|---|---|---|---|---|---|---|---|---|---|
| PC8 | SDMMC1_D0 | n/a | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PC9 | SDMMC1_D1 | n/a | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PC10 | SDMMC1_D2 | n/a | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PC11 | SDMMC1_D3 | n/a | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PC12 | SDMMC1_CK | n/a | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PD2 | SDMMC1_CMD | n/a | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| Pin Name | Signal on Pin | Pin Context.. | Pin Priv.. | GPIO output.. | GPIO mode | GPIO Pull-up/Pull.. | Maximum out.. | Fast Mode | User Label |
|---|---|---|---|---|---|---|---|---|---|
| PI0 | n/a | n/a | n/a | n/a | Input mode | Pull-up | n/a | n/a | MemoryCard_CD0 |
Under Categories: System Core select NVIC:
Configuration:
| NVIC Interrupt Table | Enabled | Preemption Priority | Sub Priority |
|---|---|---|---|
| SDMMC1 global interrupt | checked | 0 | 0 |
| Enabled interrupt table | Select for.. | Generate Enable in.. | Generate IRQ h.. | Call HAL handler |
|---|---|---|---|---|
| SDMMC1 global interrupt | unchecked | checked | unchecked | n/a |
Under Advanced Settings:
Generated Function Calls:
| Generate Code | Function Name | Peripheral Inst.. | Do not generate .. | Visibility (Static) |
|---|---|---|---|---|
| checked | MX_SDMMC1_SD_Init | SDMMC1 | checked | checked |
Generate source code by clicking on the GENERATE CODE button on the toolbar.