FrotzNet GBA Development GoodiesWhat is this?These are the tools we use to download code to and test on the Gameboy Advance. They're unix hosted tools (tested on FreeBSD and Linux) but could be ported to other platforms by the adventuresome. The only cable you need (once you have slave.mb in flash) is a GBA<->Serial cable which you can easily build with a MAX3232, DB9 connector, 1/2 of a GBA link cable, 4 .1uF caps, etc.Releases
Screen ShotsUnix Host Program (remote):
GBA Slave Program (slave):
Why Bother?The MBV2 is super-handy for multiboot support and was essential to bootstrapping this project, but I wanted to be able to do asynch bi-directional communications for debugging and adapt some tools I've used for various embedded projects. You get serial debugging, the ability to program flash (Only supports FA Turbo 64 & 128M carts, and only tested on the 64 so far). You don't need a setuid root program, a parallel port, etc. Full sources for the host program allow you to add your own debug commands or other goodies.What do you need to use it?
What does "slave.mb" do?This is a GBA resident debug loader. It relocates itself to 0x03001000 on startup (no matter where it's started at -- you can multiboot it, flash it to rom, etc). It displays a banner screen and configures the GBA for UART comms at 115200bps, 8 bits, 1 stop bit, no parity and waits for the host program ("remote") to talk to it.
What does "remote" do?This is a curses-based console to control the slave.mb program over a serial port. "help" will get you a list of commands. In a nutshell, you can "load" a binary to 0x02000000 (or some other address), "call" an arbitrary address, "erase" a 256k block of flash, "write" to flash from 0x02000000, dump memory (by byte, word, or halfword), and set the contents of a byte, word, or halfword. It has infinite scrollback of debug/status messages, command history, etc.Thanks
Links (More GBA Dev Stuff)
Your HostsThis nifty software was developed by Brian Swetland and Victoria Lease for our own evil purposes. You can send us feedback via the email alias below. If you find this stuff useful or have comments or suggestions, please let us know. |
|
gbadev@frotz.net |