ProgramShield - gbaHD/GBAHD-Shield GitHub Wiki

Programming/ Updating the Shield:

The Shield needs the firmware vom this GitHub-Repository to be able to control the GBAs buttons.

You can use an Arduino Nano e.g. for programing it.

First we need to upload the ArduinoISP Sketch onto the Nano. Connect it to your computer, start ArduinoIDE and open the ArduinoISP Sketch example:

Under "Tools -> Boards" we choose the Arduino we're using and the correct COM-Port:

now you can click on "Upload" and the Sketch will be uploaded to your Arduino:

Now we disconnect the Ardiuno from your computer to connect it with the shield.

Don't program the shield while it's inserted in the Spartan Edge Board to prevent damage

The ISCP Pins from the Nano e.g.:

  • D10 = Reset
  • D11 = MOSI
  • D12 = MISO
  • D13 = SCK
  • 3,3v = 3,3v
  • GND = GND

You can simply use jumper wires from the Arduino onto the Shield ISCP header or use a breadboard.

Now download the newest TWI-Firmware for your gbaHD-Shield from the releases-page: (https://github.com/ManCloud/GBAHD-Shield/releases), and choose the correct firmware for your ATMEGA. At this point you have to connect your Arduino Nano with your PC and start AVRDUDESS.

Open the .hex-File with AVRDUDESS

  • Choose the correct programmer e.g. "Atmel AVR ISP" and the correct COM-Port. As Baud rate use 19200 accordingly to your programmer.
  • set the fuses accordingly to this screenshots.

ATMEGA168p

ATMEGA328p

  • click on "program" and wait a few seconds.
  • AVRDUDES verifys the programming but if you're curious you can do it again ;)