MFS library read on SDHC card very slow

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

MFS library read on SDHC card very slow

Jump to solution
818 Views
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 Kudos
Reply
1 Solution
793 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
794 Views
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 Kudos
Reply