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 > Saving data

#40500 - Rinkwraith - Tue Apr 19, 2005 3:29 pm

I'm really trying to keep the stupid posts to a minimum but they're bound to crop up whilst I pick little projects to tackle in order to learn DS development.

Is it possible (through NDSLib?) to save data (data from a running app) onto the GBA flash cart, and reload it later? If so, can anyone point me in the right direction to find out how, size limitations etc. etc?

#40508 - elbarto - Tue Apr 19, 2005 5:10 pm

You can save data into GBA flash cart SRAM, but I don't know how to do that.

#40511 - NEiM0D - Tue Apr 19, 2005 5:35 pm

Set WAIT_CR's bit7 to your favourite ARM CPU which will be accessing the GBA's SRAM. (ARM7=1, ARM9=0). Then only use 8bit writes or loads to the SRAM's address which is at 0x0a000000.

#40559 - Rinkwraith - Wed Apr 20, 2005 8:33 am

NEiM0D wrote:
Set WAIT_CR's bit7 to your favourite ARM CPU which will be accessing the GBA's SRAM. (ARM7=1, ARM9=0). Then only use 8bit writes or loads to the SRAM's address which is at 0x0a000000.
You're my hero. Didn't realise it would be that simple - although I should have done.

Used to do GB programming in assembly but skipped the whole GBA system.

#40565 - Rinkwraith - Wed Apr 20, 2005 11:30 am

Just thinking about this... the addressable limit for cart SRAM is 64K isn't it? I think it was mentioned in another thread that you could do bankswitching like in the old days on the GB.

Is that possible using the compact flash adapters and PassMe?

Edit: Obviously I meant adapters/carts which PassMe supports.

#40574 - tepples - Wed Apr 20, 2005 2:30 pm

Any device that can make arbitrary 16-bit writes to flash memory can perform the Visoly Handshake and bankswitch the F2A Classic flash card's SRAM. (Here, I use "F2A Classic" to refer to the 256 Mbit card that is a clone of Visoly's last design before it went bust.) See the PogoShell source code for details.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#40575 - ampz - Wed Apr 20, 2005 2:45 pm

tepples wrote:
Any device that can make arbitrary 16-bit writes to flash memory can perform the Visoly Handshake and bankswitch the F2A Classic flash card's SRAM. (Here, I use "F2A Classic" to refer to the 256 Mbit card that is a clone of Visoly's last design before it went bust.) See the PogoShell source code for details.

The pogoshell source code has the handshake for other flash carts as well.

#40578 - Rinkwraith - Wed Apr 20, 2005 3:19 pm

Ah, each cart works differently then?

Hence the comments on the filesystem thread about building in support for the different manufacturers.

Not the best news I've had today.