Ubuntu under GCC-AVR Installation

Source: Internet
Author: User
Tags dmesg

Under Ubuntu research Arduino discovered, originally can not use Arduino IDE development, Linux also has GCC-AVR Direct development AVR series Controller.

So, can't wait to see the relevant information, summarize the steps to install the GCC-AVR.

PS: Sigh, now that Ubuntu is doing is too easy to use, before very much to worry about things, now is very simple.

1, update the system, and install the development package.

APT Update
Apt upgradeapt install build-essential

2, install the GCC-AVR tool chain.

Apt Install GCC-AVR avr-libc avrdude GDB-AVR

3, install the relevant software help documentation.

Apt Install avrdude-doc gcc-doc gdb-doc

4, install Vim and w3m.

Apt Install vim w3m

5, read the instructions for use.

W3m/usr/share/doc/avr-libc/avr-libc-user-manual/index.html (Handbook of C-Library)
W3m/usr/share/doc/avr-libc/avr-libc-user-manual/group__demo__project.htm (Demo document with a makefile at the end to customize it to your needs)
W3m/usr/share/doc/avrdude/avrdude-html/index.html (Avrdude's help document)

6, the Arduino connected to the USB port, Linux-2.6 above will automatically load the FTDI driver Ftdi_sio.ko, using the DMESG command, can be viewed.

$ DMESG...USB 3-2: FTDI USB Serial Device Converter now attached to ttyusb0usbcore:registered new interface driver ftdi_s IODRIVERS/USB/SERIAL/FTDI_SIO.C:V1.4.3:USB FTDI Serial Converters Driver

7, perform avr-gcc-v to see if the installation is successful, you can also use AVR-GCC--help to view the help document.

Ubuntu under GCC-AVR Installation

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.