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 > Problem compiling running nds code on flash card

#107421 - GunterPete - Sun Oct 29, 2006 3:57 pm

Hi folks,

So I've decided to have a go at writing some stuff for the DS, after enjoying writing GBA homebrew so much. I still have my old 256mb Flash2Advance GBA cartridge, and have bought myself a Datel Max Media Launcher as a passthrough.

My first little program (a simple julia set generator) worked fine. For this I used Arm9 template. (If anyones interested you can download this here: http://tbhl.theonering.net/petegunter/downloads/julia.zip)

For my second project I'm starting to build up a set of libraries, and am now using the combined template from DevKitPro. All seemed to be going well when running it on the emulators (Dualis and no$gba). However when I come to writing it to my flash card all I get is a pair of white screens. This happens even if I compile and run the unmodified hello world sample. I'm not sure why this is, and would be very greatfull if anyone can offer any help. Is there some issue with the F2A and the Arm7? I've run lots of other homebrew off it without issue.

Cheers,
-Pete

#107432 - tepples - Sun Oct 29, 2006 4:54 pm

Have you tried prepending a .nds loader?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#107437 - GunterPete - Sun Oct 29, 2006 6:42 pm

Okay, I've tried doing "copy /b ndsmall.bin + demo.nds demo.ds.gba" with ndsmall.bin from Darkfader's site, but unfortunately that still has the same problem.

The sample makefiles seem to generate a nds.gba file, but I can't seem to find the rules which make them (I'm pretty inexperienced when it comes to makefiles). It has the following rule, but no commands listed under it:
Code:
$(TARGET).ds.gba : $(TARGET).nds

#107441 - Sausage Boy - Sun Oct 29, 2006 7:07 pm

The actual rule is in devkitARM/ds_rules
_________________
"no offense, but this is the gayest game ever"

#107453 - GunterPete - Sun Oct 29, 2006 7:45 pm

Great, thanks.
Code:
@dsbuild $<

So that line executes ndstool on the .nds file. So I take it this prepends the loader for GBA flash cards?

Edit: Sorry disregard this question just Googled it like I should have done in the first place. Still no closer to solving my F2A problem though. :(

#107483 - josath - Mon Oct 30, 2006 1:17 am

I would try:
1. recompiling your julia app, and see if it still works
2. try downloading and running some file which is known to work

That way we can narrow down if the problem lies with the flashcart / getting files on it, or if the problem lies with your compilation.

#107752 - GunterPete - Wed Nov 01, 2006 7:33 pm

Okay, I've recompiled my Julia program, which works fine. I've tried compiling the 'Hello World' combined template program which comes with DevKitAdvance, and a get the white screen problem. Any suggestions on code that I can download and attempt to compile?