User guide

20
6310A–ATARM–26-Mar-07
Application Note
Figure 5-14. Error Parsing and Navigation in Eclipse
Please note that for best debugging performance, a project must be compiled without any opti-
mization. Usually, a variable can be set or unset in the makefile to enable/disable them. In the
Getting Started example, the $(OPTIM) variable performs that task. To enable debug support,
write the comment as follows;
# Comment the line below for debug mode
#OPTIM = -Os
5.3 Debugging
5.3.1 Launching GDB Server
The SEGGER GDB Server tool enables the GNU debugger to connect remotely to the target
through the JTAG.
When launched, GDB Server connects to the board and waits for debugger connections. A win-
dow displaying useful information is also shown (see Figure 5-15). It indicates the connection
statuses of the debugger, the SAM-ICE and the target. As written in the log window, a local
server is created on TCP/IP port 2331 to allow the debugger to connect.