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 > Is it possible to write to GBA flashcart...

#117857 - mateom199 - Thu Feb 08, 2007 3:05 am

Is it physically possible to write data to a GBA flashcart in slot 2 from an NDS app running on a slot 1 device? I don't know much about the hardware...I know on lots of flash devices you need a certain voltage to be able to write to the cart, maybe the DS can provide this?

Oh, and I'm talking about the actual flash memory, not just the SRAM memory.

#117862 - tepples - Thu Feb 08, 2007 3:40 am

mateom199 wrote:
Is it physically possible to write data to a GBA flashcart in slot 2 from an NDS app running on a slot 1 device?

Yes. Do you mean a NAND card in an adapter (easy with libfat and DLDI) or a NOR card (more difficult)? NOR card writing procedures vary per make and model of flash device. Typically, your program has to establish communication with the card's ASIC and with the NOR flash chips themselves.

Quote:
I don't know much about the hardware...I know on lots of flash devices you need a certain voltage to be able to write to the cart, maybe the DS can provide this?

A lot of GBA flash cards are designed to be flashed inside the GBA, with the data going over a cable between the PC and the serial port between the L and R buttons of the GBA. They need only 3.3 volts to rewrite a sector, but they use (comparatively) a lot of current while doing this, so make sure your DS's battery light is green first.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#117863 - mateom199 - Thu Feb 08, 2007 3:47 am

Well specifically, I was hoping to write to my FlashAdvance card. Its the older design, with an external linker - not the "in-the-gba" style of newer cards. I've been looking for some information on my card, but haven't found much of anything.

#117864 - tepples - Thu Feb 08, 2007 3:49 am

The actual card part of the old Visoly Flash Advance is nearly the same product as Flash2Advance. It's probably the most widely supported NOR card. See also tftpds thread.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#117865 - mateom199 - Thu Feb 08, 2007 3:57 am

thats exactly what I was looking for, thanks

#117894 - silent_code - Thu Feb 08, 2007 1:19 pm

tepples, do you happen to know if it's doable with a neo flash card? i ask you because you know so damn much about the gba/nds! ;) if it works, i'll have a look at the dldi lib.