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 > realtime debugging on the hardware?

#159315 - Holland - Sun Jun 29, 2008 3:35 am

is this possible at all? with any type of slot 2 card or anything?

my current debug process...
- put the microSD in the USB adapter
- put the USB adapter in the USB port
- put the .nds onto the microSD
- put the microSD into the R4
- put the R4 into the DS
- boot up
- navigate menus to start the .nds
- rinse repeat with each update to the code i'm ready to test...
...so annoying!

I tried dualis but it doesn't work much like the hardware for some things...

no$gba seems like it might be nice but apparently getting ahold of the debug version is a pain...

i'm not against throwing down some cash if it means debugging on the hardware itself!

#159318 - ritz - Sun Jun 29, 2008 4:33 am

I don't have an answer to your question, but I have a possible speed up to your current R4 process. I have one too and this is what I do:

Leave USB adapter in computer all the time.
Leave the R4 in the DS all the time.

I end up just pulling the microSD out of the adapter and putting it into the R4 and vice versa. I never eject the adapter or the R4 while I'm testing, just the microSD.

Oh, and rename your rom to DEFAULT.NDS and you won't have to navigate the boot menus either. R4 will automatically start that rom on boot up.

My two cents.

#159319 - Holland - Sun Jun 29, 2008 4:42 am

my microsd fits a little too snug to pull it out of the R4 and USB without having it in my hands...but i didn't know about DEFAULT.NDS. I'll definitely be doing that to shave off a few seconds here and there.

I thought about having another microsd so i can always have on in the computer and one in the ds...

I'm hoping there is some slot2 card that will let me debug on the hardware...that would be great!

#159325 - .crazyninja. - Sun Jun 29, 2008 6:08 am

To get the no$gba debugger, I sent Martin Korth 15$USD with paypal then sent him an email with "NO$GBA" in the subject as he recommends.

I got the unlock key by email in 3-4 days. That was a few months ago.

I have to say it's worth every penny. I even heard that some NDS certified development teams use no$gba instead of the hardware debugger provided with the official sdk.

#159327 - eKid - Sun Jun 29, 2008 6:39 am

http://forum.gbadev.org/viewtopic.php?t=12895 :(

no$gba is a really really useful tool, but the author has simply disappeared since a few months ago...

#159328 - Holland - Sun Jun 29, 2008 6:47 am

eKid wrote:
http://forum.gbadev.org/viewtopic.php?t=12895 :(

no$gba is a really really useful tool, but the author has simply disappeared since a few months ago...


yeah..seems no$ is the way to go. now let's just hope this guy plugs his 56k modem into his phone line and connects to AOL soon...haha

#159329 - Maxxie - Sun Jun 29, 2008 7:57 am

There are GDB Stubs for the Hardware and for Desmume to remote debug your nds application.

#159335 - silent_code - Sun Jun 29, 2008 11:16 am

Maxxie wrote:
There are GDB Stubs for the Hardware and for Desmume to remote debug your nds application.

Do you know of any specific (maybe easy to use / setup) examples?
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.

#159406 - Maxxie - Mon Jun 30, 2008 11:20 am

Check your devkit installation, there should be the gdb GUI insight.

Other then that see http://forums.desmume.org/viewtopic.php?id=85 for the command line options to enable the gdb sockets in desmume.

#159410 - PypeBros - Mon Jun 30, 2008 12:48 pm

I used to have wifi functions in my homebrew so that i can "pump" an upgrade from the running program, store it on the SD card and boot it all by software. It worked flawlessly on SCSD, but it requires that you tune your software to work that way... And i say "used to", because i'm switching from SCSD to R4DS and it seems that something is broken in my ARM7 code, so i'm exactly experiencing the kind of microSD-swapping you report.

I'm quite happy when that tiny storage card doesn't pop out of the reader so far that i have to cross half the office to get it back :P
_________________
SEDS: Sprite Edition on DS :: modplayer

#159411 - 0xtob - Mon Jun 30, 2008 1:18 pm

I don't like emulators much because of their inaccuracies and lack of features. no$gba is clearly the best one available, but even the commercial "homebrew" version only allows for asm level debugging which isn't really useful if you don't speak asm.

simonjhall's wifi debugger is quite good for debugging on hardware. He had to pull it from the web unfortunately, but there's word on the street that some sites still mirror it :)

I also haven't yet really found a solution to the card-swapping disease. Several copy-and-launch-binary-via-wifi solutions exist, but for me card swapping is still faster and more reliable.
_________________
http://blog.dev-scene.com/0xtob | http://nitrotracker.tobw.net | http://dsmi.tobw.net

#159415 - PypeBros - Mon Jun 30, 2008 2:48 pm

0xtob wrote:
simonjhall's wifi debugger is quite good for debugging on hardware. He had to pull it from the web unfortunately, but there's word on the street that some sites still mirror it :)


Hmm. i may have been walking down the wrong street... <Code>NoSuchKey</Code> is all i get when pressing "download" button :P
_________________
SEDS: Sprite Edition on DS :: modplayer

#159417 - 0xtob - Mon Jun 30, 2008 3:39 pm

Hmm, it appears they pulled it as well then.
_________________
http://blog.dev-scene.com/0xtob | http://nitrotracker.tobw.net | http://dsmi.tobw.net

#159420 - silent_code - Mon Jun 30, 2008 4:01 pm

I just tried the most recent versions of iDeaS and DeSmuMe. Well, guess what?

I tested them with the 1.5.0 version of my Volumetric Shadow Demo (sources and builds available on my web site) - which works flawlessly on hardware and no$gba 2.6 also runns it (via FCSR), although without shadows and capturing, and I found the following:

iDeaS still chokes on FAT (even with FCSR!), so I'll continue to ignore it, and DeSmuMe (there are two - diffferen branches or what? - versions out, right? I used 0.8, not the 0.3.something) loads everything nicely (via FCSR), but unfortunately, it does not display my 3D scene. That's probably due to the pick matrix, which is used for scissoring... :^/
I will perform some tests, but I don't want to drop that feature!

So, I'm back to using no$gba...
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.

#159424 - Holland - Mon Jun 30, 2008 5:36 pm

silent_code wrote:
I just tried the most recent versions of iDeaS and DeSmuMe. Well, guess what?

I tested them with the 1.5.0 version of my Volumetric Shadow Demo (sources and builds available on my web site) - which works flawlessly on hardware and no$gba 2.6 also runns it (via FCSR), although without shadows and capturing, and I found the following:

iDeaS still chokes on FAT (even with FCSR!), so I'll continue to ignore it, and DeSmuMe (there are two - diffferen branches or what? - versions out, right? I used 0.8, not the 0.3.something) loads everything nicely (via FCSR), but unfortunately, it does not display my 3D scene. That's probably due to the pick matrix, which is used for scissoring... :^/
I will perform some tests, but I don't want to drop that feature!

So, I'm back to using no$gba...


welp..thanks for doing the tests for us! i wonder if DeSmuMe would be fine for 2D apps..

all I can get my hands on right now is the free version of no$ since Martin is no where to be found and I don't feel comfortable just sending money to a dead-end...haha

#159427 - silent_code - Mon Jun 30, 2008 6:31 pm

Holland wrote:
all I can get my hands on right now is the free version of no$ since Martin is no where to be found and I don't feel comfortable just sending money to a (... NOT funny!)

Same goes for me.

I've also done the testing, and apparently DeSmuMe has problems with display capturing (disabled it and changed mode from FB3 to 5 with 3D to make it work.)

Whereas no$gba simply ignores capturing and renders the scene as usually, DeSmuMe displays a black screen (even when disabling the capture!) :^(
It's even worse: I think it actually has problems emulation the FB3 mode, because even when capturing is enabled (in mode 5 3D), 3D is displayed... ?

Also DeSmuMe is wa(aaa)y slower than no$gba and the shadow polygons are rendered without stenciling and blending! Again, no$gba ignores them (in 2.6 - 2.6a has a more complete feature set, at least from what the web site says), which is better than rendering solid black monoliths! ;^)

Other bugs include: Scissoring does not work propperly (warping!) and the 3D backdrop color is wrong.
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.

#159665 - M3d10n - Thu Jul 03, 2008 10:29 pm

silent_code wrote:
iDeaS still chokes on FAT (even with FCSR!), so I'll continue to ignore it.


Load the .ds.gba, or patch your NDS with the R4 dldi patch and access any files and folders located in the same dir as your NDS.

It's that simple.

#159680 - Dark Knight ez - Fri Jul 04, 2008 8:57 am

Make sure to open the settings of iDeaS where you can set the FAT to be of type R4.
_________________
AmplituDS website

#159692 - silent_code - Fri Jul 04, 2008 11:34 am

But adjusting file paths just for one emulator is not cool.
FCSR works fine on no$gba and SLOT2 NOR GBA hardware, and it would be very helpful, if it also were supported in iDeaS. :^)

EDIT: I may have misunderstood that. So, could I access "/data/my_project/file.ext"? Then it's ok and I'll try it. :^)
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.