![]() |
STM32Cube
Version 2.0
Create Projects for STM32F2 Series with STM32Cube HAL and STM32CubeMX
|
The CMSIS-Driver MCI requires:
Valid settings for various evaluation boards are listed in the table below:
Peripheral Resource | MCBSTM32F200 | STM3220G-EVAL |
---|---|---|
SDIO Mode | SD 4 bits | SD 4 bits |
Card Detect Input pin | PH15 | PH13 |
Write Protect Input pin | n/a | n/a |
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration for MCBSTM32F200 with steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.
Under Connectivity open SDIO 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 |
---|---|---|---|
SDIO global interrupt | ON | 0 | 0 |
DMA2 stream3 global interrupt | ON | 0 | 0 |
DMA2 stream6 global interrupt | ON | 0 | 0 |
Click OK to close the SDIO Configuration dialog
Under System open GPIO Pin Configuration
Pin Name | Signal on Pin | GPIO mode | GPIO Pull-up/Pull.. | Maximum out | User Label |
---|---|---|---|---|---|
PH15 | n/a | Input mode | No pull-up and no.. | n/a | MemoryCard_CD |
Click OK to close the Pin Configuration dialog