gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Eeprom Access

#116125 - mousey - Mon Jan 22, 2007 3:36 am

I've been trying to gain read/write access to the ds eeprom via homebrew via the libnds library without any success. I've looked at the devkitpro doxygen documentation, various ds coding forums and IRC channels without much success.

Revision 1.2 of card.h from the libnds was meant to fix the cardReadEeprom() function, but I haven't had any luck getting it to work on my various flashcarts or emulators.

For example

---------
uint8 c, d;
d = 1;
WAIT_CR &= ~ARM9_OWNS_CARD;

cardWriteEeprom(0, &d, 1, 1);
cardReadEeprom(0, &c, 1, 1);
printf("%d, %d", c, d);
---------

will display 0, 1 when it should display 1, 1.

Could anyone point me in the right direction on how to set up the DS to allow reading and writing to the EEPROM.

Thanks

-mousey