Message Boards
Threads [ Previous | Next ]
weird problems with MicroSD card
weird problems with MicroSD card
5/23/10 9:15 PM
I know this topic been here for a while, and i studied it as well as the code posted by users... now here is something strange going on.

First of all let me show u my hardware schematic, here it goes in attachment:

the thing is..before i was just running standard Microchip's application - MDD File System-SD Card, and the strange thing is, after i runned it, and then took out my SD card and put it into PC, i saw just FILE1.TXT was created but nothing was written inside... so i guess... if it was created then my hardware schematic is OK

interesting thing is even after creating file it returned NULL pointer....if the file wouldnt been created then i would guess soemthing is wrong...but it DID create file...but did not write anything in it...


and the funniest thing now is...without any modification, now it doesnt create file at all very strange... i have formatted SD card both as FAT16 and FAT32...no luck...

any ideas where the problem might be?

thank you

Attachments: Clipboard02.jpg (41.5k)
RE: weird problems with MicroSD card
7/7/10 3:01 AM as a reply to ColdStart .
Hello,

I would suspect that you might have some interrupts enabled. Since I faced the same problem earlier in my project too. It uses an RTOS and I had to trick the scheduler to make my card work. Have a look at http://www.mypic32.com/web/guest/contestantsprofiles?profileID=32956. You can download my project code and then try it out.

Warm Regards,
Boseji
http://m8051.blogspot.com