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