cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4discovery connection with sd/mmc card

armindavatgaran
Associate III
Posted on March 16, 2014 at 22:17

Hello

I want to connect a SDcard to stm32f4discovery .

A typical sdcard has CMD , CLK , DAT[0:3] , GND & VDD pins .

how should this pins be assigned to SDIO related pins( D0...D6 , cmd & ck ) in stm32f407vgt6?

Can sdcard's power be supplied from stm32f4discovery? how ?

Thanks . 
1 REPLY 1
Posted on March 16, 2014 at 23:35

Suggest you review some schematics, say the STM3240G-EVAL, and STM32F4-DIS-BB

Based on the code I ported to the STM32F4-Discovery

 

''The Micro SD Slot/Socket is expected to be wired as follows

 

 

CARDDETECT = PB15 (Retargetable)

 

CLK = PC12

 

CMD = PD2

 

D0 = PC8

 

D1 = PC9

 

D2 = PC10

 

D3 = PC11

 

VDD = 3V

 

VSS = GND

 

 

PC10 (SCLK) and PC12 (SDIN) potentially conflict with the CS43L22''

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..