Atmel AVR32 USB Board Programming

Latest AVR32 IDE + dfu-programmer

AVR32 Studio

Install the AVR32 Studio Beta/RC version from:

Unlike in the previous releases of AVR32 Studio, the GNU Compiler+Toolchain is already included in the AVR32 Studio 2.6...


Get and compile the latest dfu-programmer from the SVN repository on:

SVN checkout:

svn checkout https://dfu-programmer.svn.sourceforge.net/svnroot/dfu-programmer



Getting the Avr32 Studio and GNU Toolchain

AVR32 Studio Resources



build and install the attached dfu-programmer: attachment:dfu-programmer-svn95a.tgz Download

# remove any dfu-programmer already installed using dpkg:
sudo dpkg -P dfu-programmer

# install build dependencies:
sudo apt-get install libusb-dev build-essential automake autoconf

tar zxf dfu-programmer-svn95a.tgz
cd dfu-programmer-svn95a
./configure --prefix=/usr/local/
sudo make install

Programming a device

Create a .hex file from your .elf

avr32-objcopy -O ihex xyz.elf xyz.hex

Connect your board to your computer while pressing the DFU button

Erase and flash your device:

dfu-programmer at32uc3b1256 erase
dfu-programmer at32uc3b1256 flash --suppress-bootloader-mem xyz.hex
dfu-programmer at32uc3b1256 reset

Programming a device on Windows

Go to the link: " http://www.atmel.com/dyn/resources/prod_documents/doc7745.pdf" and type the commands listed on Page 17 (Figure 7-1) in the command window.

Courtsey : Georgios Petrou

Basic Firmware 0: Some GPIO testing

Firmware source: attachment:gpio-toggle.zip Download

This firmware:

  • configures PA10, PA11 & PA12 (labeled 10, 11, 12 on the PCB) as GPIO outputs
  • drives PA10 low
  • drives PA11 high
  • toggles PA12 forever...

It does drive these three pins ONLY! For electrical testing we would want all pins to be toggled...

Basic Firmware 1: Electrical Testing all I/Os

Firmware source: attachment:gpio-toggle-all.zip Download

This firmware toggles all GPIOs which are available on the copper board.

Drive strength of the GPIOs is 4mA with the exception of the high drive pins PA20 to PA23 which have 8mA drive strength.

To test your GPIOs, attach a 220 Ohm resistor to the scope probe so that we have some load on the pins when we test them.

You should see a rectangular signal with 0.9V amplitude. Of course the high-drive pins will have 1.8V amplitude respectively.

Basic Firmware 2: RGB LED controller from your computer

Basic Firmware 3: LDR light sensor read-out on your computer