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 > Program doesn't load in all flashcards

#147256 - ingramb - Mon Dec 17, 2007 10:17 am

I have a Maxmedia dock and a Ninapass x9. My program loads and works fine with the maxmedia. With the Ninjapass, it starts up correctly, but it hangs when it tries to initialize the arm7. Somehow the arm7 isn't loading properly and is crashing.

So the loaders on the two flashcards are probably different, and the maxmedia is doing something for me that the ninjapass isn't. Any ideas? Anyone run into a problem like this before? Thanks.

#147280 - DragonMinded - Mon Dec 17, 2007 9:40 pm

I ran into a problem on the MK2/MK3 cartridges with the arm7 not loading, where it loaded elsewhere. In my case, it turned out the crt0 used with my version of the toolchain was a false-positive to the neoflash bricker protection, and it was halting loading. For me, I had to put a NOP in the crt0 to get it loading properly, but I don't know if this is the same case for you.
_________________
Enter the mind of the dragon.

http://dragonminded.blogspot.com

Seriously guys, how hard is it to simply TRY something yourself?

#147300 - ingramb - Tue Dec 18, 2007 9:18 am

Problem solved. For those that are interested, I wasn't initializing REG_IPC_FIFO_CR.

#147315 - simonjhall - Tue Dec 18, 2007 7:34 pm

I had a similar thing on the M3 Simply - the key pad wouldn't work until the screen was touched once after boot.
Fixed with
Code:
REG_IPC_FIFO_CR = IPC_FIFO_ENABLE | IPC_FIFO_SEND_CLEAR;
at the beginning of my ARM9 and
Code:
REG_IPC_FIFO_CR = IPC_FIFO_ENABLE | IPC_FIFO_SEND_CLEAR;
at the beginning of my ARM7.
Job done.
_________________
Big thanks to everyone who donated for Quake2