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 > trouble using ndstool

#42675 - Pacifist - Fri May 13, 2005 11:06 pm

I'm having trouble successfully building .nds files using ndstool 1.13

I'm not sure what to say it's pretty straight foreward. I use
Code:

ndstool.exe -c theGame.nds -7 arm7.bin -9 arm9.bin


Which seems to go well. I get a file named theGame.nds with a reasonable file size. But when I use the wireless mutiboot to upload it straight to my DS I just get a white screen.

I have managed to load other people's .nds files no problem. In fact I think an earlier version of ndstool may have worked for me, but I might have just been accidentaly booting off of the gba cart or something.

My game works fine over gba cart, and I get the exact same results trying to build DesktopMan's nibbles demo into an .nds file.

Anyone else having troubles?

#42678 - Chetic - Fri May 13, 2005 11:08 pm

Yep, I was having the same problem just now, I can't make my own .nds file anymore.
My makefile sure does though and I feel so stupid not being able to figure it out from there.

#42693 - josath - Sat May 14, 2005 1:28 am

you need the newest firmware patch to send your own .nds to the gba over wifi.
Also, when using ndstool, make sure to set the correct arm7 & arm9 offsets & entrypoints. By default, you usally want to do:
Code:
ndstool -c game.nds -7 arm7/arm7.bin -9 arm9/arm9.bin -r7 0x02380000 -e7 0x02380000 -r9 0x02004000 -e9 0x02004000



Edit: Yeah, i guess somewhere along the lines they decided(or accidently?) changed the ndstool defaults to be different than the ndslib defaults


Last edited by josath on Sat May 14, 2005 2:55 am; edited 1 time in total

#42699 - Pacifist - Sat May 14, 2005 2:52 am

holy crap that worked.

I assumed since the offsets where marked as optional in the tool's help they weren't neccesary.

I wouldn't have known what to set them to anyway.

thanks josath, big help!

#42710 - Darkain - Sat May 14, 2005 3:39 am

the reason why things probably arent working now, is because the ARM7 code now defaults to 0x03800000 if you dont specify a value for it. this is actually recomended, as it keeps the ARM7 out of main RAM, so it wont use the bus. (you need latest crt0 and linkscripts for this tho)
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS