#167176 - Arkanoid - Wed Mar 04, 2009 8:54 pm
I don't know how often this topic comes up, if at all. I've looked around here and search google a lot and found no answer to my problem and hope someone can help me out.
What I do.
I download devkitpro from devkitpro of course for windows and run the automatic installer. (This is about the 3rd time I've reinstalled it thinking something was wrong) I go to examples/nds/templates and copy the default arm9 folder to c:\ and compile with the make command in DOS. It compiles fine with no errors.
Problem.
I then try to run it in dualis and desemu and it crashes both emulators.
It should be a simple hello world, I've checked the code it in it etc but I cant figure out why emulators crash regardless of what I code. Everything compiles with no errors as well.
Am I doing something wrong? A while back when I first learned about all of this I remember getting everything to work fine but it seems like somethings changed or I'm missing a step. I would really appreciate any help you can give.
-Arkanoid
#167177 - Izhido - Wed Mar 04, 2009 8:56 pm
IMO, if a simple "Hello world", or the default template projects fail to run in your favorite emulators, there is something fishy about these emulators. If I were you, I'd stick to no$gba... or, even better, to hardware.
- Izhido
#167178 - Maxxie - Wed Mar 04, 2009 9:10 pm
If desmume crashes on you. Post the .nds to have the devs check it, or do it yourself and compile desmume with debug symbols to see what it causes to crash exactly.
But the templates shouldn't be it. Unless you are using a veeeery old version of it.
Up to date is 0.91 iirc.
_________________
Trying to bring more detail into understanding the wireless hardware
#167179 - elhobbs - Wed Mar 04, 2009 9:15 pm
have you tried compiling it from within programmer's notepad. the "template.pnproj" file should open in programmer's notepad in windows. then do "Alt-1" to compile (or make on the tools menu).
I am not sure what you mean by "DOS". You should use the "MSys" link that the installer puts on the start menu under devkitPro.
#167185 - Arkanoid - Wed Mar 04, 2009 10:17 pm
Thats odd, I don't recall that emulator having any problems. I'm finally home and tried it out on my DS and in No$GBA and it worked in both of them. I had at first tried what elhobbs had said and compiled through mysys but I tried it again compiling just from file/run/cmd and it worked the same. Thanks for the quick responses, I can finally stop raging at compiling and begin to rage trying to figure out how this is programmed. I used this before and will probably start there again because it was the easiest guide to follow http://www.dev-scene.com/NDS/Tutorials but he stopped writing it when he got to sprites QQ. Maybe the other guides will make more sense after I read through this one once more. It's just up to me now to read read and read some more, maybe look at some open source programs as examples.
#167187 - Holland - Wed Mar 04, 2009 10:34 pm
If you haven't found it yet, GBAtek is an amazing doc that lays out the specifications for the GBA/DS.
If you can wrap your head around flipping bits and testing bits and such, then you'll get a LOT of mileage out of GBAtek.
It lays out every memory location and what it does, among other things. A little research and playing around will make the more difficult things, like animated sprites or parallax scrolling, seem simple. And it's more rewarding when you find all the appropriate bits to flag and stuff to make things happen. :) More so than using tutorial code...I feel dirty using tutorial code.
Not to mention, knowing how the hardware works will help you much more, in the long run, than using a premade library. :) Not that I'm against using libraries( <3 PAlib ) , but knowing what each function is actually doing makes for a smoother process on debuggin when problems occur.
#167189 - Marcel24 - Thu Mar 05, 2009 12:12 am
hi,i had the same problem with no$gba.
Delete all ini files and temp files from no$gba.
Maybe it helps
#167197 - Arkanoid - Thu Mar 05, 2009 6:34 am
Thanks for the tip Holland, that must be the one place I haven't looked yet. I'll be sure to poke around there. :3