Hello everybody,
I'm working on the LCDK with the Omap-l138 and I am tring to use the uSD as an external storage for the ARM9 side, without PSP (only with StarterWare).
I know that there is FatFs support for the SysBios but it's only for the DSP side.
I found some code to make the MMCSD peripheral work and I changed it a little bit so it will work.
I added the third party FatFs files to the project, (the project can be found here:)
(Please visit the site to view this file)
and supposedly, everything should be working fine but...
Working:
- Independant single\multyple read and write sequences (I can read the data I wrote to the SD card without FatFs)
- Mounting of the FatFs
- File open (Only for create !!)
Problems:
- Every other consecutive run, MMCSD initialization fails (sometimes HW reset is needed).
- Existing file open fails (FR_NO_FILE) - File was created with my PC-Windows 7.
- File Read\Write using FatFs fails
- File Close (thus, cannot see the files on my PC).
Notes:
- uSD was formatted over the PC to Fat32 with Windows 7.
- I found that after creation of a file, writing to it triggers the MMCSD interrupt but without any flags.
- I didn't fully understand how to use the MMCSD_MMCIM_EBSYDNE and MMCSD_MMCIM_ERSPDNE flags.
- Timing is probably a factor but I couldn't find how to do better.
Does anybody know what I'm doing wrong (with the code...)?
Thanks,
Yoel