Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

MMCSD With FatFs Problems

$
0
0

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:

  1. Independant single\multyple read and write sequences (I can read the data I wrote to the SD card without FatFs)
  2. Mounting of the FatFs
  3. File open (Only for create !!)

Problems:

  1. Every other consecutive run, MMCSD initialization fails (sometimes HW reset is needed).
  2. Existing file open fails (FR_NO_FILE) - File was created with my PC-Windows 7.
  3. File Read\Write using FatFs fails
  4. File Close (thus, cannot see the files on my PC).
Notes:
  1. uSD was formatted over the PC to Fat32 with Windows 7.
  2. I found that after creation of a file, writing to it triggers the MMCSD interrupt but without any flags.
  3. I didn't fully understand how to use the MMCSD_MMCIM_EBSYDNE and MMCSD_MMCIM_ERSPDNE flags.
  4. 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

Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>