Abhishek Jain

SD card problem. I have interfaced SD card with Coldfire...

Discussion created by Abhishek Jain on May 29, 2008
Latest reply on Apr 6, 2011 by Gustavo Denardin
SD card problem.
I have interfaced SD card with Coldfire CPU 5475 on evaluation board.
I formatted SD card for FAT 16 and wrote software for accessing files from SD card.
Everything works fine but following
The address of root directory is varying according to filename in following manner.
If filename is exactly 8 char, the address is correct as per my calulation.
If filename < 8 char, I have to add 32 bytes to addr calculated.
If filename > 8 char, I have to add 64 bytes to addr calculated.
can anyone tell me why this shift in root directory entry happens?
I have only one text file in SD card.
Thanks in advance for your help.
Abhishek Jain.

Outcomes