{Embedded learning Note (i)}ubuntu embedded development environment under construction

Source: Internet
Author: User

Say 0 basis a bit exaggerated, after all, is also a computer professional, how much to understand a little microcontroller, understand a bit of Linux, is a 0.1 basis to start it.


From C51 to arm, more difficult than expected, for several days, slow progress, embedded Linux-based development, so this time not under Windows, but choose to build a development environment directly in the Linux environment. Online information is really not much, their side of the search side of the test, record the various problems encountered, do a memo, also the environment to learn the students to exchange.


To learn a technology, the first thing to do is to get a macro understanding of the architecture of the technology. For nearly one weeks, the feeling was a little bit of an understanding of the embedded structure. What we're going to do is embed the program, use the PC, one is RISC, one is CISC, there is an important thing in the middle is the Cross compiler (Toolchain), which will generate code files that the embedded system can recognize. To develop the eclipse of choice on the software, this is just a host that allows us to write code and build, which is essentially the same software that calls other commands.


The first is a variety of software installation, JDK and Eclipse installation set up on the internet a bunch, just do the basic no difficulty.


Then install the plugin in eclipse: GNU ARM Eclipse plun-ins (preferably a proxy IP on the Internet, otherwise slow),

After installation, you can see some arm projects in the new project:


After the problem stuck me for a long time, is about Toolchain, the online search of the tutorial is basically said to install ARM-LINUX-GCC, I follow the steps to do, choose Hello World ARM cortex-m C + + project But how can not compile successfully, Finally found the reason.


There is no ARM-LINUX-GCC this cross-compiler, and then see the internet mentioned Yagarto, but only the Windows version, did not find the Linux version, but on the Yagarto home page recommended GNU Tools for ARM Embedded processors, which is the first option to select Toochain. (It feels like this arm-linux-gcc should choose the last custom, but there are many ways to try it out. Finally, there is no successful configuration.) )


Follow the online installation of ARM-LINUX-GCC to install this compiler, download and then unzip, and then configure the environment variables. environment variable settings: sudo/etc/profile, then add export path= $PATH at the end:/usr/lib/gcc-arm-none-eabi/bin, I unzipped the program to/usr/lib, and changed the folder name to Gcc-arm-none-eabi. (64-bit requires compatibility library g++-multilib.) After installation, run arm-none-eabi-gcc-v at the terminal, as shown below:


Indicates that the installation was successful.

There are also sourcery codebench those two, as if arm is officially recommended, but charges.

After installing this, it can be compiled and passed in Eclipse.

In this step, the development environment on the PC is almost the same.

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.