|
||||||||||||||||||||||||||||||||||||||||
|
For a complete C/C++ development system we need the following components:
Here I will show you how to install the J-Link GDB Server. The J-Link GDB Server is a remote server for the GDB. The GDB Server translates the GDB commands into the J-Link commands. The intention of my side was to find an inexpensive & easy to use solution for the beginners. Fortunately SEGGER offers now a J-Link ARM EDU package of the J-Link which includes the following options:
The J-Link ARM EDU version supports download in RAM and Flash, as well as an unlimited number of breakpoints in flash (Flash Breakpoints). J-Link EDU is sold to private persons, colleges, schools, universities and NPOs (Non Profit Organizations) for educational purposes only. More information about the EDU version of the J-Link can be found here. For our GDB Server we need the following components here:
1. J-Link "Software and documention pack": The J-Link is developed by SEGGER, therefore you can download the latest software from the SEGGER J-Link ARM software page. Download the "Software and documentation pack", expand the zip file, and start the setup program. For more information about how to install and setup the J-Link itself, take a look in the J-Link manual (pdf, about 2MB), which can be found at the following SEGGER page.
If you do not have the utilities like make, sh, rm, cp and mkdir, I recomended to use these tools from the latest YAGARTO Tools installer, which can be found at the front page. Start the installer, at the "Choose Components" page you can accept the defaults:
Press the "Next >" button and follow the instruction of the installer. Now we want to make a short test if these tools are all available. Therefore open a command prompt and type: C:\make --version GNU Make 3.81 This program built for i686-pc-mingw32 If there is no answer, probably "make-utils" was not installed or is not in your PATH. The GNU Project Debugger (GDB) is a freely available debugger, distributed under the terms of the GPL. It connects to an emulator via a TCP/IP connection. It can connect to every emulator for which a GDB Server software is available. For debuging with Eclipse we will use the GDB, therefore we need a GDB Server too. At this point you must already installed the J-Link "Software and documention pack". Connect the J-Link to the PC and to the target (do not forget to power the target) and start the "J-Link GDB Server". You will find the "J-Link GDB Server" in the "SEGGER \ J-Link ARM" program goup.
Remove the checkmark of the "Stay on top" option. Then set the checkmark at "Show log window", "Cache reads" and "Init regs on start". The DGB Server window will now look like:
The "Show log window" options can help us if we will get in trouble with Eclipse. "Cache reads" will enable a memory read-ahead optimization which can speed up debugging. If you have a big screen resolution you can let the checkmark at "Stay on top", but we need all the available screen space for the next step. If you need support, take a look here: |
|||||||||||||||||||||||||||||||||||||||