(Windows 10, devkitPro 10.1.0 latest, mGBA 8.1 latest)
I have been through quite a bit trying to compile my first GBA program. I first tried to use the makefile and setup in a video tutorial I found on the net after hours modifying the makefile and I fixed all the errors I was getting, it told me "nothing to be done" and I decided to try a new approach.
So I wrote this build script based on some examples I saw based on the makefile and it works, however when I load the .gba file into the mGBA it does nothing and I can see no video memory has been written too (I see stuff at the . I tried tweeking the program but nothing happens. I think the program is just not executing.
A warning I got when linking was
Code: Select all
arm-none-eabi-ld.exe: warning: cannot find entry symbol _start; defaulting to 0000000000008000
if I ignore it mGBA says the file is in the wrong format. I managed to track down the entry point address so for ld I added
Code: Select all
-e 0x08000000
There is a bunch of stuff at the begging of the (emulated) GBA's memory, but when I go to 0x08000000 in memory, I dont see anything. It may be due to the debug information being stripped (or the program memory not being in the "view memory" view) but if I go into WSL and hexedit the .gba file I see tons of stuff that is not present in the memory of the emulator and it seems a TON bigger than anything there (but there is a lot of debug info).
I don't think the program is executing.
Any help is appreciated, thanks for reading!
- TFB