reading header from R4ds microSD card

support for the ARM toolchain
Post Reply
joemartyniuk
Posts: 3
Joined: Wed Apr 29, 2009 3:50 pm

reading header from R4ds microSD card

Post by joemartyniuk » Wed Apr 29, 2009 4:16 pm

I have an R4ds with Kingston 2gb microSD. When I read microSD card reader in usb port on pc, in dos, e-drive, type in dir, I get a volume serial number and list of nds files on that card. I can type in label to add a label. I used Eeprom.nds to try to access that information but example works up to re-install card. Re-install does not work. Was header immediately over written? If so, or not, how can I read sector info from the microSD once NDS has started up? Devkitarm .h files provide lots of info. (2 gb card isn't in list of cards) But my attempts to figure out a solution have failed. Thanks. Joe

joemartyniuk
Posts: 3
Joined: Wed Apr 29, 2009 3:50 pm

Re: reading header from R4ds microSD card

Post by joemartyniuk » Thu May 28, 2009 6:16 pm

does anyone know if memory card access uses spi mode or native mode?

m4c0
Posts: 9
Joined: Wed May 27, 2009 11:46 am

Re: reading header from R4ds microSD card

Post by m4c0 » Mon Jun 29, 2009 10:32 pm

Based on my experiences with NDS card commands, I guess you cannot read that ID from "usual" NDS commands. I guess EEPROM refers to "save games". Maybe the DLDI interface solves your problem: it is used by libfat to read the FAT from the microSD card.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest