--- In gbadev@y..., "yerricde" <d_yerrick@h...> wrote:
> --- In gbadev@y..., "ninjaneer" <bjohnson13_99@y...> wrote:
> > I have an application for the GBA which needs to save data in the
> > battery backed SRAM at 0x0E000000.
> [...]
> Have you tried comparing the data you wrote with the data you read
> back, byte for byte, to see *which* bytes differ? I've had carts
> set the first or last byte to 0x00 or 0xff on power-cycle and not
> change the rest of the data. If that's your problem, just don't
> use the first or last byte of the SRAM.
>
> --
> Damian
No, not yet. I guess thats a good next step, have to code that. Since
it works on the one card and VBA, sure seems card specific. In
looking
for card docs, I see the loader programs let you select a save bank
but didn't find details how they set it. I saw talk of patching some
save routines, so there must be a page register or some routine libs
somewhere.
New info, the records seem to be wrapping too, 606 bytes each.
Changing record 2 or 1 alters record 0, but only on the new cards!
How can it be? It works on VBA/other card, honest.
I've got insight/gdb running with VBA but don't have a good debug
setup for the actual GBA hardware, yet.
Thanks for the tip.
+BillJ