esdhc slow write speed with SD card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

esdhc slow write speed with SD card

719 Views
jlevie
Contributor I

Hello -

I have a design using a K60F120 part and an SD card with the esdhc driver.

The driver is configured for a 50 Mhz clock to the sd card, and 4 bit SPI mode. The OS was just updated to to MQX4.2, and MFS is used for the filesystem on the SD card.

I am seeing very slow write speeds to the SD card. FTP writes are roughly 400KBytes/Sec. The MFS swt test utility, when benchmarked with a hardware based millisecond counter I have in the design takes about 32 milliseconds to write each of its 10K files, with performance best at the 512 Byte size.

Has anyone seen similar speeds, and is there a way to speed things up?

Labels (1)
0 Kudos
2 Replies

415 Views
soledad
NXP Employee
NXP Employee

Hello Jeff,

Are you using a freescale board?

Did you test using a sample code?

Could you please try using the SDCARD example, it is located at the path: C:\Freescale\Freescale_MQX_4_2\mfs\examples\sdcard

Regards

Sol

0 Kudos

415 Views
bonzo
NXP Employee
NXP Employee

Have you confirmed that the clock is running at 50MHz?

What type of card are you using?

Also, it could be task or interrupt priority issue.  See this post SDHC Interrupt

0 Kudos