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.

Coding > ARM SDK

#4202 - krozen - Sun Mar 23, 2003 11:35 am

Hello,
I recently acquired an evaluation of the official ARM SDK. I can get my programs to compile, but they dont seem to work on the emulators. Can anyone give me any advice on how to compile programs with this properly?
Thank you

#4245 - MHz - Tue Mar 25, 2003 6:04 pm

I'll try to help out (but a lot more info regarding what you actually do to compile, structure of your code, arm version etc, would clear some things out)...

The way I do it is by having one small start/boot assembler source, containing the rom registration data (are you sure this is correctly included in your compiled file?) and the "main jump" (necessary inits etc), regardless if it is a asm/c/c++ program i'm doing. When compiling/assembling I'm also using the "scatter" feature in order for me to decide exactly where each .o file goes in the rom (for instance, the rom reg data must reside at file offset 0x0 etc).

Also, I'm assuming you've converted the compiled file format from ELF -> BIN before trying to execute it?

In short, you can't make working gba files, simply by using default settings in the arm environment. You need to make a couple of changes for it to work. The question is just what changes you've have/havent' made...

(What I'm referring to here is the ARM SDT 2.50+ suite, perhaps you're using another version?)



\ MHz /

#4247 - Lord Graga - Tue Mar 25, 2003 6:45 pm

Take a look at the sources on my site... The "lite-tron" should do the trick for you...