eclipse--online debugging and compiling program of integrated development environment under Linux

Source: Internet
Author: User
Tags jlink

1, install gdb Server:tar xvzf arm-linux-gdb-7.5.tar.gz, after the decompression into, and execute./build-all.

2. Add GDB server to the environment variable path, (the compiled GDB server under directory/opt/) find its path which eclipse, then go to cd/opt/arm-linux-gdb/bin/,pwd to view the current path, and copy it down.

3, enter the VIM/ROOT/.BASHRC, add the following: Export PATH = $PATH:/opt/arm-linux-gdb/bin/; Last run Arm-linux-gdb will be recognized.

Installing Jlink Software

1. Unzip the tar Xvzf jlink-linux-v434a.tgz-> into the folder, copy the cp-d libjlinkarm.so*/usr/lib-f, and then copy the CP 45-jlink.rules/etc/udev/ Rules.d/.

2, the JTAG Connection good board, execution./jinkgdbserver See if the board can be perceived.

Install Eclipse

1, to write off the previous eclipse, first through which eclipse to find the path, into the cd/usr/bin/; back up MV Eclipse Eclipse-back, go inside the Arm-tools and unzip Eclipse,tar XVZF Eclipse...-> enters Eclipse and executes./eclipse.

2, Workspace:/home/s3-arm/part1/lesson1.

3, configure eclipse: Install plug-in, Help->install new Software->http://opensource.zylin.com/zylincdt->...->finish.

4. New->make file project with existing Code->a, project Name:led;b, existing code position:lesson2.

5, the program is now compiled:project-> (remove build auto ...) ->build all-> Select Debug->debug configuration-> double click Zylin embeded...->led default->c/c++->brouse- > select: Elf file->debuger-arm-linux-gdb-> remove the Stop option->command->initalize->gedit open the corresponding initialization file and copy it in.

6, start debugging.

eclipse--online debugging and compiling program of integrated development environment under Linux

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.