Game Boy Advance

The Game Boy Advance is a handheld videogame platform based on the ARM7TDMI microcontroller.

Interfaces

Interface Hardware Supported TinyGo Support
GPIO ? ?
UART ? ?
SPI ? ?
I2C ? ?
ADC ? ?
PWM ? ?

Installing dependencies

You can use a Game Boy Advance software emulator such as MGBA (https://mgba.io) to test your programs.

Building code

Build your Game Boy Advance programs using -target gameboy-advance like this:

tinygo build -o main.elf -target gameboy-advance examples/gba-display

Then convert the ELF output file to the GBA file format by using the arm-none-eabi-objcopy command like this:

arm-none-eabi-objcopy -v -O binary main.elf main.gba

You can now use the GBA file with your emulator or flash it onto your physical hardware.

Flashing

Information needed here…