Search found 13 matches

by melw
Tue Jul 07, 2009 1:37 pm
Forum: DS/DSi Development
Topic: receive hangs; was TCP send() performance and eventual hangs
Replies: 41
Views: 132381

Re: TCP send() performance and eventual hangs

After the previous send here we receive two packets in a row. While (almost?) all the received packets have protocol set to B0024C8, here the first packet has protocol set to B00241C, and the second one again B0024C8. When the second packet gets to sgIP_UDP_ReceivePacket(), the following line hangs ...
by melw
Mon Jul 06, 2009 1:36 pm
Forum: DS/DSi Development
Topic: receive hangs; was TCP send() performance and eventual hangs
Replies: 41
Views: 132381

Re: TCP send() performance and eventual hangs

Thanks for the source! JSYK, compiled perfectly under Windows as well... Here's further information what's going on: There are probably coming from Wifi_Update() in wifi_arm9.c, after reading a packet from the RX buffer. The RX buffer is checked in a loop, and obviously there's at least two packets ...
by melw
Sat Jul 04, 2009 7:18 pm
Forum: DS/DSi Development
Topic: receive hangs; was TCP send() performance and eventual hangs
Replies: 41
Views: 132381

Re: TCP send() performance and eventual hangs

One thing I did notice when I did rebuild with dswifi9d and stuck dbgprint in there is that I get this just before the hang: R:001AE90B008B 00224391F6B6 0800R:001AE90B008B 00224391F6B6 0800 There are probably coming from Wifi_Update() in wifi_arm9.c, after reading a packet from the RX buffer. The ...
by melw
Tue Jun 30, 2009 11:11 am
Forum: DS/DSi Development
Topic: Guru Mediation Error
Replies: 14
Views: 14982

Re: Guru Mediation Error

You should definitely keep the defaultExceptionHandler() for helping find the problems in your code. This enables the exception screen that shows the register values and current addresses where things went wrong. You can then trace back these addresses on your development computer with following ...
by melw
Sun Jun 28, 2009 8:12 am
Forum: DS/DSi Development
Topic: Mapping opengl coordinates to pixel coordinates
Replies: 1
Views: 3584

Re: Mapping opengl coordinates to pixel coordinates

Perhaps this is a glOrtho() / value overflow related issue? See here for more information. I haven't used 3d modes on DS for a while, but last time I checked (several libnds versions ago) drawing 2d quads in 3d mode worked also when initializing simply with: glInit(); glEnable(GL_TEXTURE_2D ...
by melw
Wed Jun 17, 2009 6:03 am
Forum: DS/DSi Development
Topic: Request: nitrofs + libfat example
Replies: 4
Views: 6033

Re: Request: nitrofs + libfat example

This actually brings up something that I'm not sure how to handle at all. For a system where nitroFS isn't read through libfat then this sort of thing will fail anyway - emulators and slot2 cards for the most part. Where nitrofs *is* read through libfat then the ideal situation would be for fat ...
by melw
Mon Jun 15, 2009 8:43 pm
Forum: DS/DSi Development
Topic: Request: nitrofs + libfat example
Replies: 4
Views: 6033

Re: Request: nitrofs + libfat example

Nevermind, the code posted above actually works as it should. The problem was a result of NitroFS not receiving the argv values as intended.
by melw
Fri Jun 12, 2009 8:09 am
Forum: DS/DSi Development
Topic: Request: nitrofs + libfat example
Replies: 4
Views: 6033

Request: nitrofs + libfat example

I'm bit puzzled about how to get libfat and nitrofs working at the same time. Either I get fat or nitro initialized and working, but can't use one after another. Any pointers on this would be appreciated - perhaps adding also an example to examples/nds/filesystem ? The following code was tested with ...
by melw
Sun Jun 07, 2009 12:42 pm
Forum: DS/DSi Development
Topic: dswifi broken in r26?
Replies: 8
Views: 11277

Re: dswifi broken in r26?

Well, I pulled buildscripts from the devkitPro CVS ... looking at the logs, it seems you have stopped updating CVS at the end of 2008? devkitPro has been using svn for quite some time: http://sourceforge.net/scm/?type=svn&group_id=114505 To confirm this is an issue with your DS Lite, and not in ...
by melw
Tue May 26, 2009 1:00 pm
Forum: maxmod
Topic: Looping samples, sample rates on DS, loading from EFS
Replies: 3
Views: 5561

Re: Looping samples, sample rates on DS, loading from EFS

1) mmutil supports wavs with loops in them, if you don't have a program that can set the loop point in a wav file (seems to be a rare feature) then you can put the wave file in a module instead and set the loop there (name/DOS filename of the sample in the module must be prefixed with # to export a ...