Skip to content

Flashing g2core with Atmel Studio and Atmel ICE

ril3y edited this page Feb 20, 2023 · 3 revisions

This page is for uploading an already compiled G2 binary to a target board using Atmel Studio 7 (or greater) and the Atmel ICE programmer/debugger. This requires Windows or a VM for AS6. Please see Getting Started with G2 for information about other options.

##Note: As of Feb 2023 atmel studio flashing is longer supported please see link below: While this process still might work. Your mileage may vary. Our official support for this method has been dropped.

Flashing g2core with WSL


##DEPRECATED ### Step 1 - Get the g2core.bin file

Option 1 - Compile your own using the instruction in Compiling G2 on Windows (Atmel Studio 7)

Option 2 - Get the tinyg2.bin binary firmware files from http://synthetos.github.io/g2/

Step 2 - Program g2core onto the Due Using Atmel-ICE

Select the Tools / Device Programming menu. I've omitted a lot of steps, but there are some things to watch for

  • Make sure the ribbon cable is plugged into the SAM port, not the AVR port
  • Make sure the connection from the ribbon cable to the 10 pin micro connector on the board is properly polarozed (red wire by the white dot), and contacts both rows of pins. It's easy to mess this up as the connector is so small.
  • In the programing dialog box select SWD, not JTAG
  • Program the fuses (GPNVM Bits) to boot from FLASH (not ROM), BANK 0

Debugging with Atmel-ICE

Use the debug controls in AS6. If you set up a Watch to look at variables and structures you will need to expand the "public" to actually see the structure elements.

Clone this wiki locally