Wunderboard wunder.2 2013 code samples and docs
-
Open a termninal Window
-
Make sure apt has current versions (type into terminal) :
sudo apt-get update
- Install toolchain (type into terminal) :
sudo apt-get install avr-libc binutils-avr gcc-avr avrdude
If it works, the last four lines should resemble :
Setting up binutils-avr (version stuff)
Setting up gcc-avr (version stuff)
Setting up avr-libc (version stuff)
Setting up avrdude (version stuff)
- Install the DFU programmer for flashing the board (type into terminal) :
sudo apt-get install dfu-programmer
-
Connect device in DFU programming mode
-
Plug board in
-
Press and continue to hold "HWR" button
-
Press and continue to hold button
-
Release "RST" button
-
Release "HWR" button
-
The board should re-enumerate on the USB bus using it's built-in boot loader
-
Enumeration can be checked by running :
lsusb | grep -i "atmel"
-
It should show something similar to :
Bus 002 Device 003: ID 03eb:2ffb Atmel Corp. at90usb AVR DFU bootloader
-
Erase the device
sudo dfu-programmer at90usb1287 erase
- Flash the flash device (using "main.hex" as an example)
sudo dfu-programmer at90usb1287 flash main.hex
- Reset the device and start executing the updated firmware
Press and release the "RST" button