Setting up Eclipse IDE for AVR Programming on Ubuntu
This page is WIP.
Installing Eclipse
You can download the latest version of eclipse from http://www.eclipse.org/
You need a functioning JAVA JRE installed to run eclipse
sudo apt-get install openjdk-8-jre openjdk-8-jdk openjdk-9-jre openjdk-9-jdk
Depending on your Ubuntu version, you might have to change the openjdk versions to a version available in your repository. (i.e. Ubuntu 16.04.1 doesn’t have version 7)
Install AVR Eclipse Plugin:
In Eclipse go to “Help” -> “Install new Software”
AVR-Plugin:
Name: AVR Eclipse Plugin
URL: http://avr-eclipse.sourceforge.net/updatesite/
Install avr dependencies, gcc-avr, avrdude, etc..
sudo apt-get install binutils-avr gcc-avr avr-libc avarice simulavr avrdude gcc build-essential libncurses5-dev uisp avra avrdude-doc gdb-avr libusbprog0 usbprog usbprog-gui avrp
Setup udev rules
This is necessary to allow eclipse to access the programmer.
Note that you have to be part of the group “users”, either add your user to the group using:
sudo adduser username users
or omit ‘GROUP=”users”,’ in the config file
Create file “/etc/udev/rules.d/usbprog.rules”
# Please test and place config for other programmers here # JTAGICE mkII ATTR{idVendor}=="03eb", ATTR{idProduct}=="2103", GROUP="users", MODE="0666" # AVRISP mkII ATTR{idVendor}=="03eb", ATTR{idProduct}=="2104", GROUP="users", MODE="0666" # Dragon ATTR{idVendor}=="03eb", ATTR{idProduct}=="2107", GROUP="users", MODE="0666" # USBTiny ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", GROUP="users", MODE="0666" # USBasp ATTR{idVendor}=="16c0", ATTR{idProduct}=="05dc", GROUP="users", MODE="0666"
Reload udev rules:
sudo /sbin/udevadm control --reload-rules
If you are using a different programmer, you might want to add the following lines:
KERNEL=="ttyUSB[0-9]*",MODE="0666" KERNEL=="ttyACM[0-9]*",MODE="0666"
This allows any user on your system to access any devices starting with “ttyUSB” or “ttyACM”, which also applies for most USB to UART converters, ArduinoISP, etc.
Leave a Reply