MFS library read on SDHC card very slow

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MFS library read on SDHC card very slow

跳至解决方案
1,340 次查看
MattJCole
Contributor V

 

I am using. KSDK Version: 1.3.0, MFS library (not sure which one): ,Processor: MK65FN2M0xxx18

The read speed from an SDHC card is very slow. For every 1460 bytes read it takes 60 milliseconds. I can not figure out why it is taking so long. I know I am not giving much information I do not know what I am missing. When I looked at the setup of the SD card using the debugger the data width is 4 bits not 1 bit and the baud rate is set to 25 MHz. Is there a setting or settings I need to set to speed up the reading of the SD card.  

 

0 项奖励
回复
1 解答
1,315 次查看
MattJCole
Contributor V

When I was using the fread function the parameter "Size of element to be read" was set to one. When use a larger value for "Size of element to be read" the reads are much faster. Know it takes me ~1.5 milliseconds to read 4,380 bytes

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,316 次查看
MattJCole
Contributor V

When I was using the fread function the parameter "Size of element to be read" was set to one. When use a larger value for "Size of element to be read" the reads are much faster. Know it takes me ~1.5 milliseconds to read 4,380 bytes

0 项奖励
回复