The problem I have is that I didn't have any board with an SDIO slot in the PCB. I am having to use for testing one of the typical SPI-SDCard adapters, connected with dupont cables.
So I can't use 4 bit mode (D2 and D3 are not broken out to the connector), and I am having to run it at no more than 1Mhz, and still I get problems every once in a while.
Does anyone have an F1 board with an onboard sdcard slot connected to the SDIO?
If so, I would need your help with testing.
Warning, not all boards have the slot connected to the SDIO pins. I have one here that has it connected to SPI1

This is the bench test with a class 2 card at 1Mhz 1 bit mode:
Code: Select all
Manufacturer ID: 0X1B
OEM ID: SM
Product: 00000
Version: 1.0
Serial number: 0XFEF37216
Manufacturing date: 4/2011
File size 5 MB
Buffer size 2048 bytes
Starting write test, please wait.
write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
85.71,164623,17109,23881
85.67,165073,20813,23892
Starting read test, please wait.
read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
109.75,25514,17432,18659
109.76,19639,17432,18656
Done
Type any character to start

Code: Select all
write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
132.29,156462,8627,15471
132.13,158481,12374,15489
Starting read test, please wait.
read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
error: read failed
SD errorCode: 0X60,0X0
For anyone willing to test, this is the first release of the code:
https://github.com/rogerclarkmelbourne/ ... 2/pull/339