In my media devices architecture class, we are developing on the GBA. Unfortunately, most of the students are developing on windows machines, which leaves me and a few others the odd men out. On macs, we're using devkitarm as our compiler with a provided makefile. Unfortunately, the Makefile had a few flags misconfigured.
The stock makefile worked perfectly until we started dealing with sound. The problem was two fold:
- Setting the interrupt handler would cause the GBA to reset
- Sound files larger than thirty seconds would overflow the ewram
There were two macros in the make file that were used for compiling and linking respectively:
MODEL = -mthumb -mthumb-interwork SPECS = -specs=gba_mb.specs