cancel
Showing results for 
Search instead for 
Did you mean: 

sdio fatfs speed problem

elec_st
Associate III
Posted on January 22, 2014 at 20:31

i use fatfs and i read at about 200to300KB/SECOND

 it's very low speed . i test sd card speed from computer and it's speed reading 12.5MB/SECOND

how to speed up sd card reading i want about 5MB/sec are this hard ?

#metoo-maybe
25 REPLIES 25
elec_st
Associate III
Posted on January 25, 2014 at 22:41

i try your hex file and it's like magic i read 9.5MB/SEC AT 42MHZ ONLY !!!. how you make this ? you are Genius 0.o plaese tell me how you do it pleas. and thank you alot for helping me i love you. you helping me alot from start .

FatFs Testing for asr.ahmed STM32 Forum
---- 0 /DIR.TXT
---- 4 /LENGTH.TXT
---- 125 /LOG.TXT
---- 32768000 /SPEEDTST.BIN
---- 2419206 /1.BMP
Done
STM32 1024 KB FLASH, 192 KB RAM, 00240021-34314719-36343236 UNIQUE
SYS:42000000, H:42000000, P1:42000000, P2:42000000
CPU:42000000, SDIO:48000000,24000000
CRC32 C47004E3 Memory Image
32768000 Bytes, 481981050 Cycles
2.855415 MBps Write (FatFs)
CRC32 C47004E3 SPEEDTST.BIN
32768000 Bytes, 487387505 Cycles
2.823741 MBps Write (FatFs)
CRC32 C47004E3 SPEEDTST.BIN
32768000 Bytes, 145517716 Cycles
9.457653 MBps Read (FatFs)
32768000 Bytes, 145511631 Cycles
9.458048 MBps Read (FatFs)
Done

elec_st
Associate III
Posted on January 27, 2014 at 13:17

pleas help me your code reading 9.5MB/s and writing at 4MB/S.it's Fantastic

but my code  reading onlly about 200 to 300KB/s . please help me any source code please

hitsumen
Associate II
Posted on January 27, 2014 at 13:46

Hi,

1. What card you use, there are card speed class rating:

http://kb.sandisk.com/app/answers/detail/a_id/1996/~/difference-between-speed-class,-uhs-speed-class,-and-speed-ratings

2. How you measure the speed of your microSD card, I use Systick for that.

3. I somehow cannot use 4-bit mode, so in 1-bit mode I have ~2.5MB/s write and read @24MHz SDIO clock. I use 32786 bytes for transfering, CPU clocked at 168MHz. Like Clive said possible to go with aggressive clocks and get more speed.

In your case try to go from 4-bits to 1-bit and see what happens. With 10cm wires you should be ok.

hitsumen
Associate II
Posted on January 27, 2014 at 13:47

Posted on January 27, 2014 at 14:54

I need to package the Keil project in a form I'm willing to release, this might take a day or two to get to. The core code is functionally identical to the one I've released for the STM32F4-DIS-BB board, with the Card Select functionality suppressed. Send me an email.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
hitsumen
Associate II
Posted on January 28, 2014 at 08:53

clive1 i tried to put my microsd card to stm3210E-Eval board, and it did not want to work in 4-bit mode, really strange.. Maybe something wrong with my sd card..

elec_st
Associate III
Posted on January 30, 2014 at 15:02

ok i'm waiting .

this my e-mail if you need it

elec_st@yahoo.com

thank you

elec_st
Associate III
Posted on February 11, 2014 at 15:06

thank you clive1,thank you clive1

thank you clive1

thank you clive1

thank you clive1

thank you clive1

rbordalba
Associate
Posted on April 29, 2014 at 16:52

Hello Clive1,

I am having the same issues than asr.ahmed with the sd read/ write speed, I am also using a ''long'' wire with both STM32F429I-DISCO and STM32F4-Discovery and my code for testing the speed only reaches 200 KB/s.

Where did you post the code you are talking about?

If you haven't posted it anywhere, would it be possible that you send me it via email? I would like to have a look at it and then try to adapt it to my code.

My email is rbordalba@hotmail.com

Ricard

Posted on April 29, 2014 at 17:11

Where did you post the code you are talking about?

On the forum in dozens of places, there is a link to one within this thread itself.

SDIO is problematic on the STM32F429I-DISCO because one of the LCD Red pins falls in the middle of the 4-bit SDIO implementation.

This is a fairly current build for the STM32F401C-DISCO and STM32F4-DIS-BB

https://drive.google.com/file/d/0B7OY5pub_GfIU0VFWWs2dmxKOFE/edit?usp=sharing

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