#47273 - solarwind__ - Wed Jul 06, 2005 11:15 pm
i am using devkitadv (not devkitarm) (this could be the problem but i dont know). I used a makefile that lookes like this:
gcc -c -mthumb -mthumb-interwork -o pong.elf pong.c
objcopy -O binary "C:\dev\3vg\pong.elf" "C:\dev\3vg\pong.gba"
pause
the one above does not work. when i open the gba file with VISUAL BOY ADVANCE, only a white screen appears. But i know the program works because i compiled a different way:
gcc -o hello.elf hello.c -lm
objcopy -O binary hello.elf hello.gba
that one works but i need to use the one above to be able to configure it to work with XBOO, so i need to tell the compiler to compile it so it starts in the SRAM memory in the GBA, any suggestions? Or is it just the old devkitadv thats causing the problem? SHould i get devkitarm? and try the whole thing over again?
thanks in advance
_________________
#solarwind
gcc -c -mthumb -mthumb-interwork -o pong.elf pong.c
objcopy -O binary "C:\dev\3vg\pong.elf" "C:\dev\3vg\pong.gba"
pause
the one above does not work. when i open the gba file with VISUAL BOY ADVANCE, only a white screen appears. But i know the program works because i compiled a different way:
gcc -o hello.elf hello.c -lm
objcopy -O binary hello.elf hello.gba
that one works but i need to use the one above to be able to configure it to work with XBOO, so i need to tell the compiler to compile it so it starts in the SRAM memory in the GBA, any suggestions? Or is it just the old devkitadv thats causing the problem? SHould i get devkitarm? and try the whole thing over again?
thanks in advance
_________________
#solarwind