#107755 - ttursas - Wed Nov 01, 2006 8:00 pm
Here we go again... I haven't released a new version of Wright Flight because once again
dswifilib crashes the game. I just send one UDP packet and boom. The interesting thing is
that this all worked fine four days ago. After adding some code and data files to the game
the crashes started again (happened before, but the latest dswifilib release fixed that for
a while).
I've been through my code and I've disabled a big part of it, and there doesn't seem to be
anything wrong with it. I've replaced the memory managed in dswifilib, but no help there.
Every time I send one UDP packet the game crashes. The irqs work on ARM9, but the
main and the only thread gets stuck at the end of one function. It doesn't return from there
even though there's nothing blocking it. So it is a stack problem?
Anyway, this got me thinking.
arm9/build/.map says:
Name Origin Length
rom 0x08000000 0x02000000
ewram 0x02000000 0x003ff000
dtcm 0x0b000000 0x00004000
itcm 0x01000000 0x00008000
*default* 0x00000000 0xffffffff
... and...
.stack 0x00080000 0x0
0x00080000 _stack = .
*(.stack)
...
I don't move DTCM myself, but does DevKitARM's stuff move it? Is there any RAM at
0x80000 in NDS? If not, where is my stack!? :)
Any ideas? All help is appriciated...
dswifilib crashes the game. I just send one UDP packet and boom. The interesting thing is
that this all worked fine four days ago. After adding some code and data files to the game
the crashes started again (happened before, but the latest dswifilib release fixed that for
a while).
I've been through my code and I've disabled a big part of it, and there doesn't seem to be
anything wrong with it. I've replaced the memory managed in dswifilib, but no help there.
Every time I send one UDP packet the game crashes. The irqs work on ARM9, but the
main and the only thread gets stuck at the end of one function. It doesn't return from there
even though there's nothing blocking it. So it is a stack problem?
Anyway, this got me thinking.
arm9/build/.map says:
Name Origin Length
rom 0x08000000 0x02000000
ewram 0x02000000 0x003ff000
dtcm 0x0b000000 0x00004000
itcm 0x01000000 0x00008000
*default* 0x00000000 0xffffffff
... and...
.stack 0x00080000 0x0
0x00080000 _stack = .
*(.stack)
...
I don't move DTCM myself, but does DevKitARM's stuff move it? Is there any RAM at
0x80000 in NDS? If not, where is my stack!? :)
Any ideas? All help is appriciated...