So here's where I have got to so far;
Card Initialization;
This has been working great with Sandisk 16MB and Sandisk 1GB microSD
cards. Support has been added to detect MMC, SD, SDHC, and SDIO. Only
the SD path has been tested. I don't have access to a SDHC or SDIO
card, so that needs further testing. Plus I don't think MMC cards fit
into the VC21BR1 microSD slot, so don't envisage further work on the
MMC path. I'm hoping that at least the SDHC path is correct.
Read/Write;
Single block read/write (no interrupts or DMA) has been tested in
isolation. Writing 128 single blocks of test patterns works, and they
can be read back correctly. Support has been added to loop across
multiple blocks, but that hasn't been tested. SDHC card (and 4 bit
bus) support has been added but not tested.
uMon FATFS/DOSFS;
Using the latest version of uMon (v1.15), cf functions have been added
that hook into the SD init, read, and write functions. CF can
initialize the SD card and provided the function hooks to DOSFS. FATFS
can then be used to ls, cat, and get a file from the SD card into TFS.
I came across problems using rm, qry, and put FATFS commands. put
command seemed to work, but Windows (XP and Vista) complained that the
file was corrupt :S So I tried a different route to test the SD init,
read, and write functions...
EFSL (Embedded Filesystems Library);
I grabbed the latest stable CVS version of EFSL (v0.2.9), and updated
it with Martin Thomas's upgrades (see link below). Then dropped in
support for VCMX212. A simple uMon API based test program using this
EFSL library, can read a text file from the SD card, and write out a
copy of the file contents to a new file on the SD card. Windows can
read this new text file back from the SD card :)
EFSL -
http://efsl.be/
Martin's changes -
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/efsl_arm/index.html
So... Not sure how to share all this with the group?
I could wrap up and document the upgrade procedure for uMon...
Zip up my working EFSL library directory and test program...
Email people the couple of C/H files that implement the SDHC code...
Any suggestions?
> Just come across Spectec microSD SDIO devices :O (
http://www.spectec.com.tw/index.htm). So a bit distracted looking at the SDIO