Hi,
I'm using a program based on the BSL sample program for MMCSD (together with a fat file system) on my C6748 (OMAP-L138) which works fine... when I'm in debug mode without optimization. As soon as I enable the optimization, setting the -o flag, I encounter problems when reading an writing to my SD card. At optimization 0 and 1 the program gets stuck in one of the while loops in the sample program. When 2 and 3 are used it simply goes through the program without writing anything to the card. And when the optimization is disabled the problem disappears.
My questions are:
What does the optimization do?
How does fifo act when the code is optimized?
Do I need to put in an extra delay somewhere?
How can I solve this problem?
Best regards,
Abebe Hailu