Hi Arun,
thanks for posting the project. I assume you are using CodeWarrior v10.6 with my latest components from SourceForge?
I see that you had a .metadata (workspace) folder inside your project: that's clearly something not good (don't put a workspace into your project folder).
When compiling, I noticed this warning:
Description Resource Path Location Type
ignoring #pragma jump_switch [-Wunknown-pragmas] display.c /sdcard1/Sources line 261 C/C++ Problem
but this one is a real problem:
Description Resource Path Location Type
passing argument 1 of 'f_mount' from incompatible pointer type [enabled by default] passing argument 2 of 'f_mount' makes pointer from integer without a cast [enabled by default] sdcard.c /sdcard1/Sources line 19 C/C++ Problem
You pass a pointer to a file (FILE fp), and not a pointer to a FATFS fs. For sure, this will be a big problem the memory blocks/size behind these are different.
So can you fix this?
The other problem with your project I see is this: you are using the Timeout component, but I don't see that you feed the timeout every 10 ms (as specified in the properties) from a 10 ms timer interrupt or similar: you need to call TMOUT1_AddTick() every 10 ms, e.g. from Events.c.
Please have a look at this FatFS bare-metal (no OS) project on GitHub:
mcuoneclipse/Examples/TRW-K60N512/TWR-K60N512_FatFS_BM at master · GitHub
I hope this helps,
Erich