GameBoyAdvanceBsp
From RTEMSWiki
Contents |
GAMEBOY Advance and Advance SP BSP
A Tip For Loading A RTEMS Program
The following is based on a tip that was given by Alan Cudmore on the rtems-users mailing list with some additions and changes made by Micronian:
The emulator and real GBA don't use the EXE image, they run a .GBA image. You can use the objcopy command to convert your EXE to a GBA image:
arm-rtems-objcopy -O binary --remove-section=.comment --remove-section=.note --strip-unneeded foo.exe foo.gba
Notes:
- Even if your EXE does not have the .exe extension (e.g. an ELF file called foo), a command similar to the one above can be used.
- If you use VisualBoyAdvanced, it is important that the final program have the .gba extension, otherwise you will get an "Unknown file type" error.
Miscellaneous
Patch file for rtems-4.6.2 can be found here: http://www.kopteri.net/koti/markku.puro/files/rtems-4.6.2.diff.gz
Doxygen GBA BSP Pdf-reference manual can be found here: http://www.kopteri.net/koti/markku.puro/files/RTEMS_GBA_refman.pdf
Here is compiled, ready to run RTEMS ticker example http://www.kopteri.net/koti/markku.puro/files/ticker.gba
and Multiboot version of Hello example http://www.kopteri.net/koti/markku.puro/files/hello.gba
Compiled *.gba(=exe) files can be programmed in Flash or run in GBA(max.256Kbyte) with FlashLinker. Or You can use GBA emulator in Windows/Linux.
Such as: http://vba.ngemu.com/index.shtml
TODO list (some nice to have features:)
UART compatible serial device
MBV2 serial device
LCD device
better console screen, virtual screen 80x24
GBA BIOS library wrappers
