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 > Slot 1 EEPROM access?

#125862 - Crs - Tue Apr 17, 2007 6:09 pm

Hi devs,

After hours of searching and testing I'm ready to give up with the LIBNDS eeprom functions (cardWriteEeprom / cardReadEeprom)

Are they broken? I'm using devkitpro release 20

If so, could someone recommend a good reference on eeprom access (read and write).

If not so, would someone be willing to show a good source example of these functions working? :)

I appreciate any advise. Thanks a lot!
_________________
www.hazardball.com

#125872 - KeithE - Tue Apr 17, 2007 8:10 pm

Cory1492 has written some EEPROM tools that might be helpful. LINK

#125875 - tepples - Tue Apr 17, 2007 8:20 pm

Crs wrote:
If so, could someone recommend a good reference on eeprom access (read and write).

I recommend the "Cardme" library by SaTa. Cardme is officially distributed with the backup tool REIN; a version of Cardme that has been modified to work with recent versions of libnds is included with RAC.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#125899 - Crs - Wed Apr 18, 2007 2:36 am

Thank you both for your references!

I'll check them out and let you know how I get on. :)
_________________
www.hazardball.com

#126011 - Crs - Thu Apr 19, 2007 4:52 am

Well I managed to get it working somewhat. The cardme functions did the trick.

I was confused for a while as I'm using a supercard one and I didn't realise its behaviour of saving was to update the save file after a reboot back in to its menu (so for some time it looked, to me, as though it 'sometimes' worked)

However, I can't find any emulator which will emulate the eeprom with these functions? Its not essential, but it would help my testing by a lot. There's not much information on this topic :(

Thanks again for the replies :)
_________________
www.hazardball.com

#126039 - tepples - Thu Apr 19, 2007 2:34 pm

When I was testing RAC, I couldn't find a single DS emulator that could handle both 2 Mbit flash in SLOT-1 and a GBAMP in SLOT-2.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#126117 - Crs - Fri Apr 20, 2007 3:16 am

Ah, not just me then :)

I've found its easy enough to call cardmeGetType, and if thats returning -1 switch to using SRAM for slot2/emus.

A few things I found though, cardmeWriteEeprom doesnt work unless cardmeReadEeprom has been called atleast once before it.. I could look in to it more to find out what is required to be initialised but its all working how I need now and its something I will get back to ;) Now my development can continue :D

Cheers again Tepples!
_________________
www.hazardball.com