#113979 - ymalik - Tue Jan 02, 2007 2:47 am
Hello all,
I hope everyone is doing well and has a Happy New Year. Its been a while since I've been here.
VBA 1.8.0-beta pops up a message box that says "Unsupported ARM mode 00" and my ROM resets. It happens in different time frames and it comes only when I doing something. no$gba says "the ROM image has crashed" and shuts down. Any idea what this means? The only reference to this I've found to this through Google is on a emulation website.
Thanks,
Yasir
#113980 - keldon - Tue Jan 02, 2007 3:16 am
I would guess that your code has some pointer/memory access faults and is writing to areas where it should not (such as the stack) and making the GBA execute invalid code!
#113986 - tepples - Tue Jan 02, 2007 7:02 am
How much do you have loaded into IWRAM? Perhaps your global variables have got so big that they are overwriting the stack. The first step is to run arm-eabi-nm -n on the .elf file.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#114026 - ymalik - Wed Jan 03, 2007 12:34 am
tepples wrote: |
How much do you have loaded into IWRAM? Perhaps your global variables have got so big that they are overwriting the stack. The first step is to run arm-eabi-nm -n on the .elf file. |
I haven't loaded anything into IWRAM--just EWRAM. My local variables in my functions don't take up that much space either. When I get home I'll check how much I've uploaded into EWRAM.
I'm still using the compiler provided by HAM, and I don't know if I have that command. If not I'll get DevkitARM.
Thanks.
#114046 - tepples - Wed Jan 03, 2007 5:54 am
ymalik wrote: |
I'm still using the compiler provided by HAM, and I don't know if I have that command. |
I don't use that toolchain myself, but other names to look for are arm-agb-elf-nm, arm-elf-nm, in fact anything ending in -nm.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#114103 - ymalik - Thu Jan 04, 2007 12:30 am
Ok, I've uploaded the file here: http://www.cs.stevens.edu/~ymalik/nm.txt . I don't see IWRAM overflowing. I'm using about 50 KB of EWRAM.
DevkitARM doesn't have GDB. I'm sticking with HAM.
#114109 - tepples - Thu Jan 04, 2007 1:46 am
How much stack space is your program trying to use? With the way your program is set up, if you try to use more than about 22 KB of stack (__sp_usr minus __iheap_start), you'll get problems.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#114161 - ymalik - Thu Jan 04, 2007 7:15 pm
Actually, the ROM was crashing because of an assertion I had placed. GDB didn't tell what the assertion was; it just reset. I think I fixed why the assertion had failed, though.
Thanks for all the input.
#114337 - wintermute - Sat Jan 06, 2007 8:32 pm