Installing the AVR32-Studio and AVR32 GNU Toolchain in Windows

  1. Download and install AVR32 Studio below (you might need to install Java first).
  2. Make a projects folder to hold your firmware projects.
  3. Download the usb-rgb-led example program below and unzip to projects.
  4. Run AVR32 Studio and import the usb-rgb-ldr project. If AVR32 Studio asks if you want to set up the USB drivers for programming devices, say no, since this would install the Jungo USB driver which is not used with libusb or the DFU=Device Firmware Update.
  5. Build the project.

Installing the libusb driver

Now you need to install the USB driver so that Windows can access your device. Follow the instructions at wiki:2011/usb11/RainbowPyWin7.

Programming the device

If your copper board flash is erased, you will need to program the flash.

  1. Download and install the FLIP installer below. This installs the command line utilities used by AVR32 Studio to program the AVR32 over the USB bootloader.
  2. In AVR32 Studio, make a new target (lower right window). Choose the DFU programmer and the AT32UC3B1256 device.
  3. Plug in the copper board. In Windows Device Manager, do you see the category libusb-win32 devices? If not, or if you do not see either the device AT32UC2B DFU or AVR32 UC3 USB DEVICE, then you need to generate and install the libusb driver. Follow the instructions at wiki:2011/usb11/RainbowPyWin7. If you do see the device, then hold down the DFU button (furthest from the USB connector) and the reset button (closest to the USB connector), then release the reset button and then the DFU button. The device should now appear in the Windows Device Manager as AT32UC3B DFU.
  4. Now you can select the DFU target you made in AVR32 Studio and Program the device. Select Verify memory after programming, Start executing after programming, and Erase flash before programming. Select the file usb-rgb-ldr\Debug\usb-rgb-ldr.elf file from the project. To see the DFU programming log, you may need to select the AVR32 Console using the pulldown menu on the top right of the Console window.

Running the rainbow example

  1. Follow the directions in wiki:2011/usb11/RainbowPyWin7 to run the example on the host side.