The role of the Eclipse integrated development environment
You can compile the program, or you can debug the program online.
Integrated development Environment
1.JLink connecting the JTAG of the Development Board
2.JLink USB connection to PC
3.eclipse Software
4.GDB Server Software
5.JLink Software
Installation steps
1. Format NAND Flash
2. Connect the Jlink and set the boot from NAND flash
3. Installing the GDB Server Software
1.tar ZXVF linux-gdb-7.5.tar.gz
2. Execute./build-all, compile the GDB server software, and then install the software
The compiled software is in the/OPT/ARM-LINUX-GDB directory
3. Add Environment variables
Vim/root/.bashrc
export path= $PATH:/opt/arm-linux-gdb/bin Note: To be added in front of the ARM-LINUX-GCC environment variable, because GDB Server software is also available in ARM-LINUX-GCC
Unregister the system for new environment variables to take effect
4. Run arm-linux-gdb to view GDB version 7.5 to indicate successful installation
4. Installing the Jlink Software
1. Installing the Jlink Software
RPM-IVH jlink-4.98.2.i386.rpm
2. Launch the Development Board and connect to the virtual machine
3. Run Jlinkgdbserver, if installed correctly you can see the model of the processor
5. Installing the Eclipse software
1. Eclipse is already in the system, and its location can be found through the which Eclipse command, but its version does not match the development use
2. Modify the system default Eclipse software name to make it unusable
Mv/usr/bin/eclipse Eclipse_bak
3. Unzip the eclipse tar zxvf eclipse-cpp-...
4. Run eclipse in the corresponding directory, an error will occur on the first boot and start again normally
./eclipse
6. Configure Eclipse
1. Installing plugins
Help->install New Software->http://opensource.zylin.com/zylincdt->zylin Embedded CDT->Next->I accep ...->finish
Use steps
1. Set up the engineering catalogue mkdir LED
2. Copy the source file to the project directory
3. Building Eclipse Engineering
File->new->makefile Project ... Note: The open project file path cannot be the same as the Eclipse workspace
4. Compiling the program
1.project->build automatically, remove auto-compile
2. Select the project and execute clean
3. Select the project, execute build all,eclipse call makefile to complete the project compilation
4. Configuring debugging
1. Select Debug Elf file debug->debug configuration...->zylin Embedded debug->c/c++ application under Browse->led.elf ( Note that the program to be debugged is in elf format)
2. Select Debugger to remove stop on startup At:main->debugger->gdb debugger Browse->arm-linux-gdb
3. Configure initialization Command commands-> ' Initialize ' commands-> add related initialization commands
5. Start debugging
Debug->xxx Default
6. Change the register display into the system
Select All right-click->format->hexadecimal
[state-Embedded notes] [019] [Eclipse Integrated development Environment]