Re: Debugging SDIO
Posted: Sun Jun 19, 2011 5:45 am
I got a bunch of cards and ran tests and I'm not sure I understand what I see. They all work for the 1 Mb copy file test (copies a file in fread / fwrites of 512 bytes) using the fatfs with the STLib SD functions. However three SDHC 4Gb class 4 SD cards fail on sdConnect(). I am not sure if it's a problem with HC or with Class 4. One odd thing is that the PNY card is class 4 but it's slower than the SanDisk (this one does not have a class icon but online the model appears as class 2).
The weird thing about these tests is that the 1 MB file copy using fatfs on STLib does not match the supposed speed of the card at all. It seems that the PNY card should be good for my needs but I wish I understood the problem. Could it be a sector size thing? The example I am running is forced to 512 byte single block writes, so maybe if the internal size of the card is larger this is inefficient?
The weird thing about these tests is that the 1 MB file copy using fatfs on STLib does not match the supposed speed of the card at all. It seems that the PNY card should be good for my needs but I wish I understood the problem. Could it be a sector size thing? The example I am running is forced to 512 byte single block writes, so maybe if the internal size of the card is larger this is inefficient?
Code: Select all
Micro SD Card SanDisk SD 128Mb C(2? SanDisk SD 2Gb C(2? PNY SDHC 4Gb C4 HP SDHC 4Gb C4 Sony SDHC 4Gb C4
Model ? (Came with ST Eval) SDSDQM-002G-B35N P-SDU4G4-EF/DI L1882A-EF SR-4A4/QT
Format FAT 2Kb FAT 64Kb FAT 64Kb FAT 64Kb FAT 64Kb
1 Mb file copy using STLib 8.5 16.8 4.8 13.4 17.8
CH SDIO HAL test (s) 4.8 15.0 Fail sdconnect Fail sdconnect Fail sdconnect
H2testw 100 Mb write (Mb/s) 2.4 5.9 4.6 7.7 8.6
H2tesw 100 Mb read (Mb/s) 9.7 14.6 16.0 13.6 16.3