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 > Fun with SPI

#38422 - olimar - Sun Mar 27, 2005 1:36 pm



Last edited by olimar on Wed Aug 20, 2008 9:27 pm; edited 1 time in total

#38433 - darkfader - Sun Mar 27, 2005 8:32 pm

Ah, looks alot like the savegame EEPROM reading routine I wrote. Except, I cannot seem to get it to work somehow. I hope European DS isn't different :/ I'll check my other DS...
Anyway... who wants to try erasing his firmware? :P

#38434 - Riven.art - Sun Mar 27, 2005 8:34 pm

Maybe to rewrite. The GP32 erases before it loads the new one on.
I really hope new firmwares come out

#38441 - darkfader - Sun Mar 27, 2005 9:25 pm

Oh it works here now too... it seems I had wrong a #define :P

Quote:

SPI_CR=0x8800;
SPI_DATA=0;
SPI_CR=0x8000;
SPI_DATA=powersetting;

That's an odd sequence.

Anyway... the firmware seems to be 256KB. Firmware of my USA version seem to be encrypted differently than new newer EUR version. Interesting :)
Info will appear at http://www.bottledlight.com/ds/index.php/Main/Firmware
Now we wait until someone writes the first DS virus.

#38465 - TJ - Mon Mar 28, 2005 3:29 am

I thought the firmware was stored on a ROM like in the GBA? Does this indicate it may be possible to reflash the firmware on the DS?

#38530 - darkfader - Mon Mar 28, 2005 11:00 pm

I did command 9F and the ID match with some ST chip.
Check bottom of http://www.bottledlight.com/ds/index.php/Hardware/DataSheets

#38562 - natrium42 - Tue Mar 29, 2005 3:21 am

I made a small firmware dumper for people interested...

You can download it here: http://www.natrium42.com/blog/?p=20
_________________
www.natrium42.com

#38570 - darkfader - Tue Mar 29, 2005 5:18 am

It does 64KB, not 32KB :)
But I got Darkain's fw dumps and it works.
Also, I could write settings :)
If the CRC is not correct, it shows some error about corrupted settings :)
Anyway... what about a TurnIntoBrick() call in ndslib?
Code:

if (gameover) TurnIntoBrick();

#38573 - natrium42 - Tue Mar 29, 2005 5:58 am

darkfader wrote:
It does 64KB, not 32KB :)

Thanks, corrected :)
_________________
www.natrium42.com