Using Eclipse for embedded software development

Source: Internet
Author: User

Using an integrated development environment makes editing code easier than using the command line, greatly improving the efficiency of software development. In the development of ARM Embedded Linux, the same is true with the Eclipse integrated development environment, which describes how to use eclipse to develop embedded liunx software.
This article assumes that the arm cross-compilation environment is already installed on Ubuntu.
First, install the software
1. Install Eclipse
Search for Eclipse in Ubuntu's Software Center, click Install, and install it without having to configure the JDK environment variables, which is much simpler than using the command-line installation.
2. Installing the CDT
Open Eclipse, select Help->install New Software in the menu bar, add download source
cdt-http://download.eclipse.org/eleases/indigo/
Select the two CDT installation package, choose All, and reboot after installation.
Ii. Creation of the project
Create a new/C + + project and select the default Linux gcc toolchain.

Set up compilation tools, including compilers, linker, assembler:

To set up the C + + compiler:

To set the C compiler:

To set the linker:

To set up the assembler:

 

Compile the project to generate the arm platform executable code:

Third, on-line debugging program

To configure debug mode:

To set up the Eclipse network connection to the ARM board:

The IP address is the wired IP address of the development host, and the port can be arbitrarily specified, but care should be taken to avoid conflicts.

  Note: If you do not see the Connection tab, click the link below the blue "select Other ..." style and switch to GDB (DSF) for Renite Stystem ...

Software debugging using Gdb+gdbserver: Assuming that the NFS network file system is already configured, Gdbserver (if the cross-compilation tool is installed to search the file system, Copy directly) and the resulting executable file Learn1 (the application-generated executable file) to the NFS-mounted directory, enter the directory in the terminal, and execute the following command:

./gdbserver 192.168.0.5:8888./learn1

The program enters the listening state:

Click Debug in Eclipse, enter the debug state, and monitor the connection request on the terminal:

Set a breakpoint at return to run the program:

When the program stops at the breakpoint, the printed information is displayed on the terminal:

At this point, the Eclipse embedded ARM development environment based on the network terminal is built. You can develop embedded Linux software just like the software on Windows.

Using Eclipse for embedded software development

Related Article

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.