This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ATA File System Issues

Hi,

We're working on a project that uses the ATA file system on a SD card.

I have the TI example code up and running that writes a file in poll mode and DMA mode.

This works great when the code is executing out of RAM.

When I execute the code out of flash however, the files created on the SD card are corrupted.

The polltest.txt file is present but it is corrupted (when I open the file in Windows it complains the data is corrupted and asks to create a new file).

I then moved the ATA file system to RAM execution, and kept the rest of my project in flash, but it still cannot correctly write files to the SD card.

What's even more odd is that the code thinks that the polltest.txt was written correctly with no errors.

It writes it to the SD card and then reads it back to verify.

In the past I had issues with the USB CSL code executing out of flash, and moved that module to RAM execution and all was good.

That didn't seem to work out on this one though.

All my other code executes fine out of flash, it's just the CSL code that I cannot get to execute correctly out of flash.

Can these modules not execute in large memory model?  Or in 24-bit goto options? (I recompiled them in these models to fit the rest of the code in my project)

Any input on the situation would be more than welcomed!

Thanks,

Ben