Create an Avr-Eclipse development environment under Ubuntu

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.