Hi Svein,
My first guess is that it's Window's file system caching that's causing problems for you. After you have formatted the card, shut down the PC, take out the card, boot the PC, run your AVR program, and then insert it into the PC.
Verify that Sdentrynames is exactly 11 characters.
If this doesn't solve the problem, I'm afraid I will have to ask you to read the pdf document in the download zip file and the sticky threads in this forum.
Also, compare the example code files to your own code.
Thanks for pointing out the 1024 and 512 discrepancy. This looks like a typo.
Best regards
Niclas
↧