cancel
Showing results for 
Search instead for 
Did you mean: 

SD Card interface with STM32F303

2013ee139
Associate II
Posted on September 06, 2016 at 08:13

Hello,

I want to interface a SD card with stm32f303. Please help me how to interface sd card with microcontroller. Also I want to read the data on my laptop, do I need a file system because windows can read in FAT32 or NTFS. Please help me in creating a file system if needed.

Regards

Nabeel

#stm32 #stm32f3 #sdcard
3 REPLIES 3
slimen
Senior
Posted on September 06, 2016 at 10:11

Hi,

You can start with FatFs_uSD example under the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef3.html

firmware package:

STM32Cube_FW_F3_V1.6.0\Projects\STM32303E_EVAL\Applications\FatFs\FatFs_uSD

This example provides a description on how to use STM32Cube firmware with FatFs in order to develop an application exploiting FatFs features with microSD drive configuration.

Have a look to this 

http://http://www.st.com/content/ccc/resource/technical/document/user_manual/61/79/2b/96/c8/b4/48/19/DM00105259.pdf/files/DM00105259.pdf/jcr:content/translations/en.DM00105259.pdf

 â€œDeveloping Applications on STM32Cube with FatFsâ€� it may be helpful for you, as provides a description of how to use the STM32Cube firmware components with a generic FAT File System (FatFs).

Regards

Posted on September 06, 2016 at 13:23

You ned to interface with SPI or SDIO connectivity. There are numerous examples of these across the STM32 family of boards with schematics.

You'd need a driver for either SPI or SDIO. You'd need a file system implementation like FatFs to sit on top of that and provide you with file access commands.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 24, 2017 at 20:06

i also want to connect sd card to stm32f303 discovery board thorough SPI protocol. Please guide me.