cancel
Showing results for 
Search instead for 
Did you mean: 

SDIO + STM32F4

kandziorasfor
Associate
Posted on March 25, 2012 at 20:28

Hi. I am new user of STM32F4 microcontroller. Previously, I used PIC32 and PIC18 devices, but they don't have installed SDIO module ''on board''. So, I bought STM32F4-Discovery Evaluation Board and I am trying to work on it. The most important step on it is to use SDIO interface, but the examples aren't very clear for me. I found some examples on the Internet, but it is not going easy to implement it and make it work. Everything is well connected to the board (SD-card <--> STM32F4 ).

Below I am writng links to sites, where I found the software (SDIO):

http://

http://

http://

I have understand GPIO's and otehr things, but it still doesn't want to run.

So here is my question:

1. Does anybody know a usable source of software or exemple project with very simple SDIO procedure (write/read sector). Or maybe someone would give some advices, how to manage with the problem?

2. Maybe someone of you have measured the advantages of using SDIO interface in comparision to SPI-SD interface? (current consumption, speed of interface...).

#sdio #sdio-4bit-usd
3 REPLIES 3
alok472
Associate II
Posted on March 26, 2012 at 03:09

The firmware library examples from STshall help you. I found the standard peripheral library is already available on web.

http://www.st.com/internet/mcu/product/252140.jsp

  (see Firmware section)

Same as link2 in yr port. It can be copy from the ST web.

There shall be examples already implemented to Read and Write Pages...

The SDIO is 4bit data bus interface and SPI is single bit data bus interface. The speed of writing and reading is hence much different. Also the clock frequency on which you can operate the SPI and SDIO is different. So, huge gain in terms of the data bandwidth/writing speed.

kandziorasfor
Associate
Posted on March 27, 2012 at 11:15

Thanks very much for your answer. It was very helpful.

Regarding the advantages and disadvantages of SDIO, do you have measured any parameters of data transmision to/from uSD card and it's power consumption?

alok472
Associate II
Posted on March 28, 2012 at 03:51

Power consumption of SD card shall be same irrespective of 1b or 4bit interface.

I guess you can save power on STM32 side since the read and write time will be reduced on SDIO interface, so more time is available in Low Power Mode