Bill Greiman
Well-known member
Could you provide details for the on-board microSD?
I have just tested SdFat on Teensy 3.6 using an external socket on pins 10, 11, 12, and 13.
I used SdFat-beta which has a class, SdFatEX, that optimizes multi-block transfers.
SdFatEX keeps the SD selected with SD_CS low unless you force it to be released.
Here are results for 512 byte reads and writes.
Here are results with 50 byte reads and writes. These go through the cache.
Here is the performance for the standard version of SdFat with 50 byte reads and writes. Writes for SdFatEX are about six times faster and reads are more than twice as fast.
True DMA or SDIO would be great. A STM32F411 can do over 5 MB/sec for 512 byte transfers with 50 Mhz DMA SPI.
I have just tested SdFat on Teensy 3.6 using an external socket on pins 10, 11, 12, and 13.
I used SdFat-beta which has a class, SdFatEX, that optimizes multi-block transfers.
SdFatEX keeps the SD selected with SD_CS low unless you force it to be released.
Here are results for 512 byte reads and writes.
File size 5 MB
Buffer size 512 bytes
Starting write test, please wait.
write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
3238.13,9271,155,157
3204.92,15792,155,159
Starting read test, please wait.
read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
3293.60,2529,154,155
3297.94,1346,154,154
Here are results with 50 byte reads and writes. These go through the cache.
File size 5 MB
Buffer size 50 bytes
Starting write test, please wait.
write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
2891.84,9417,1,17
2875.22,15833,1,17
Starting read test, please wait.
read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
2936.00,3474,1,16
2941.18,1292,1,16
Here is the performance for the standard version of SdFat with 50 byte reads and writes. Writes for SdFatEX are about six times faster and reads are more than twice as fast.
File size 5 MB
Buffer size 50 bytes
Starting write test, please wait.
write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
459.73,25878,1,108
451.51,25492,1,110
Starting read test, please wait.
read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
1327.32,3321,1,37
1327.67,1391,1,37
True DMA or SDIO would be great. A STM32F411 can do over 5 MB/sec for 512 byte transfers with 50 Mhz DMA SPI.
Last edited: