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.

Hardware > Writing to an official GBA Cartridge

#134709 - NeoGoldenBoy - Mon Jul 16, 2007 1:34 am

Hello:

I'm a complete noob to the GBA Dev scene and i have a question that I haven't found an answer to.

I want to write a game to a regular GBA Cartridge, specifically "update" a game, some of you may alreadu know that a Fan Translation of Boktai 3 is being done...

What I want to do is to upload the patched game to an original Boktai cartridge (I already own Boktai 3 in japanese) so that I can play it with real sunlight.

So, does anyone here can help me or point me out on what do I need to do in order to acomplish this?

Thanks in advance for any help provided.

Best regards,
NeoGoldenBoy

#134711 - sgeos - Mon Jul 16, 2007 1:52 am

Carts produced by Nintendo for retail can not be rewritten. As far as I know, they use mask ROMs.

-Brendan

#134812 - NeoGoldenBoy - Tue Jul 17, 2007 4:38 am

Well, that's also what I know, the question here is that if there's a possibility to write on them by desoldering something idk, mod the cart with a Flash ROM?

#134828 - tepples - Tue Jul 17, 2007 12:33 pm

The mask ROM used in a GBA Game Pak has a seek/read protocol. Commercially available NOR flash chips are not seek/read; they are directly addressed. You will need to add both a NOR flash chip and a counter circuit.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#134936 - phonymike - Wed Jul 18, 2007 5:12 pm

if he has any left you'd be better off getting a cheap flash card, and hacking in a solar detection circuit. there's pry an analog to digital converter chip on the official cart, transplant that along with the clear case to one of those cheap flash cards.

#143506 - Funky Gibbon - Mon Oct 22, 2007 10:11 pm

Some GBA Games like Pokemon Ruby are updateable, they have Flash onboard as well as the mask rom

#143509 - tepples - Tue Oct 23, 2007 12:42 am

But Pokemon can't execute code from the flash chip, can it? It can't execute in place because of the 8-bit bus limitation. Does it store code in flash and copy it to the RAM or something?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#144490 - Funky Gibbon - Fri Nov 02, 2007 10:35 pm

no tepples
i dont think it does execute code in the flash, i have'nt investigeted the pokemon ruby cart fully as i dont get alot od spare time, it does'nt have the standard 64k EEprom though it's a full 512 mbit flash and i know that the game is interactive abd the data stored in flash effects gameplay, 512mbit is a lot of space just to store save data, it would be worth investigating further

#144516 - HyperHacker - Sat Nov 03, 2007 3:45 am

I know Pok?mon Ruby has some sort of patching system. When that bug was discovered where berries weren't able to grow after a year had passed on the RTC, they were able to patch it somehow. I imagine there are some routines (interrupt handlers, an init routine, etc) that are loaded to RAM. The game would just load code/patching info from flash if it finds any, otherwise from ROM. That would be enough to hack in a check that resets the year counter every now and then so the bug is never triggered, since the game doesn't use years for anything anyway.

A possible option for this particular case is to get a flash/RAM cartridge that you could wire a solar sensor into, and patch the game to use it. If you don't mind not using it on a DS, you could also wire one to the link port.
_________________
I'm a PSP hacker now, but I still <3 DS.

#144710 - josath - Mon Nov 05, 2007 11:30 pm

HyperHacker wrote:
I know Pok?mon Ruby has some sort of patching system. When that bug was discovered where berries weren't able to grow after a year had passed on the RTC, they were able to patch it somehow.


Are you sure they didn't just copy your savegame to a new cart?

And I am very sure that the original game did not have 512mbit (64mbyte!) of flash in it.

#144715 - tepples - Mon Nov 05, 2007 11:55 pm

josath wrote:
HyperHacker wrote:
I know Pok?mon Ruby has some sort of patching system. When that bug was discovered where berries weren't able to grow after a year had passed on the RTC, they were able to patch it somehow.

Are you sure they didn't just copy your savegame to a new cart?

Sure. Some Pok?mon titles for Nintendo GameCube were able to install the berry fix over the link cable.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#144765 - Kyoufu Kawa - Tue Nov 06, 2007 9:42 pm

Here's a thought I had just now. What if the berry fix is not actually written to dedicated "patch-flash" but to the savegame instead? If it's big enough... copy it into IWRAM and run it!

I think LoadingNOW or Chiklit once sent me a pre-patched savegame that showed a scene from one of the anime and gave the player a Jirachi. I'll contact them right away.

#144789 - HyperHacker - Wed Nov 07, 2007 4:22 am

Yeah:
HyperHacker wrote:
I imagine there are some routines (interrupt handlers, an init routine, etc) that are loaded to RAM. The game would just load code/patching info from flash if it finds any, otherwise from ROM.
:-p

It seems unlikely they actually figured "this could break" and put a check to use alternate logic in the berry code, so this seems like a more feasible idea. Or maybe they just set the clock back?
_________________
I'm a PSP hacker now, but I still <3 DS.

#145310 - lag man - Wed Nov 14, 2007 12:08 am

nintendo guy are not noob if her cardtridge was that was cool but they arent
_________________
Paum? au milieu des champs mdr
lost in my fuck'in village of shit lol