HOW TO GET AVRDUDE/AVR-GCC TO WORK ON UBUNTU/DEBIAN/LINUX MINT * Installing avrdude: sudo add-apt-repository ppa:pmjdebruijn/avrdude-release sudo apt-get update sudo apt-get install avrdude * Installing avr-gcc and dependencies sudo apt-get install gcc-avr binutils-avr avr-libc * Download the iox32e5.h and crtx32e5.o from: https://github.com/andete/blog-stuff/tree/master/ATXMEGAE/for_avr-libc * Put iox32e5.h in /usr/lib/avr/include/avr/ * Put crtx32e5.o in /usr/lib/avr/lib/avrxmega2/ * Open /usr/lib/avr/include/avr/io.h for editing in your favorite text editor. Under line 410 ("#include ") add the following two lines: #elif defined (__AVR_ATxmega32E5__) # include * Connect the Atmel ICE unit to your PC via USB. Then use "lsusb" to find which usb device to use. You are now ready to compile and upload your files! * Compile your projects with avr-gcc -Os -mmcu=atxmega32e5 -Wall -o .hex .c * Upload the program with sudo avrdude -c atmelice_pdi -p x32e5 -P usb -U flash:w:.hex