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.

Beginners > Please Help/Blank White Screen on emu/nothing on GBA

#46724 - modchamp - Wed Jun 29, 2005 4:27 pm

I just started learning C and am trying to compile my first little thing for the GameBoy Advance Movie Player. I am using devkitarm r8 and have made the code but I can't get it to compile correctly. When I try to run the gba in an emulator it just shows a blank white screen when I load it on my gameboy it just freezes up. Please Help.
Here is my .bat file:
Code:

set path=C:\devkitarm\bin;%path%
arm-elf-gcc -specs=gba_mb.specs -o hello.elf hello.c -lm
arm-elf-objcopy   -O binary   "hello.elf" "hello.gba"
pause


This was the hello example from Loirak Development but I have messed around with it and now it is a green background that comes in and draws black gridlines.

Thanks in advance,
modchamp

#46730 - tepples - Wed Jun 29, 2005 6:41 pm

modchamp wrote:
I can't get it to compile correctly. When I try to run the gba in an emulator it just shows a blank white screen when I load it on my gameboy it just freezes up. Please Help.
Here is my .bat file:
Code:
arm-elf-gcc -specs=gba_mb.specs -o hello.elf hello.c -lm


Have you tried adding -mthumb -mthumb-interwork ?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#46737 - modchamp - Wed Jun 29, 2005 8:15 pm

thank you so much it works perfectly now