1. After installing eclipse in Ubuntu, and then sudoapt-getinstallsun-java5-jdk install j2sdk5, install sun-java6-jdk can also work normally 2. Because Ubuntu on eclipse is version 3.2, we go to http://www.eclipse.org/downloads/download.php? File =/technology/epp/down
1. After installing eclipse in Ubuntu
Sudo apt-get install sun-java5-jdk
Install j2sdk5 and install the sun-java6-jdk.
2. Because the eclipse version on Ubuntu is 3.2, let's go
Http://www.eclipse.org/downloads/download.php? File =/technology/epp/downloads/release/ganymede/SR2/eclipse-cpp-ganymede-SR2-linux-gtk.tar.gz
Download the latest version of eclipse-cdt.
3. directly run the eclipse
4. then install the compiler. In win, install winavr directly, and in ubuntu, it is also very simple,
Sudo apt-get install gcc-avr binutils-avr avrdude avr-libc
Gcc-avr is the NB Compiler
Avrdude is used to download a program from a single-chip microcomputer.
The avr-libc is an avr library developed by Daniel.
5. Install the eclipse plug-in
Because we downloaded the cdt version of eclipse, we don't need to install cdt.
5.1 avr-eclipse
This is very powerful. It can help you write makefile and generate avrdude commands.
Install it from this address
Http://avr-eclipse.sourceforge.net/updatesite/
5.2 subclipse
My hobby is always using svn...
Http://subclipse.tigris.org/update_1.4.x
6. Because the download tool I used is AVRVI's Jtag-Isp 2.5, it should be a Jtag-isp (MKI) type, and it comes with a usb to serial port.
Ls/dev/ttyUSB * check how many USB to serial port devices you have
Select this option in avrdude. (For example, I use ttyUSB0)
7. serial Port debugging: the serial port is a very useful thing. If you do not understand minicom, use cutecom. cutecom is a graphical interface serial port debugging software, I personally feel much better than the serial port height assistant in win ..
Sudo apt-get install cutecom
At this point, you have a powerful avr development environment in linux.