User guide
25
6310A–ATARM–26-Mar-07
Application Note
The last tab to examine is the “Commands” tab. (There is nothing to do in the “Source” and
“Common” tabs as they are automatically set to correct values and are rarely modified.) There
are several initialization and runtime commands to enter in order for the debugger to work
correctly.
Since the debugger will connect to the target remotely, this must be specified using this line:
target remote localhost:2331
This command tells arm-elf-gdb to connect remotely to a server running on TCP/IP port
2331 on the local machine. This settings are the ones given by GDB Server (see Section 5.3.1
on page 20). When the command is executed, the connection status of the debugger should
change in the GDB server window. This command must be put in the ‘Initialize’ commands box.
Once the debugger is connected, it is best to reset the target. This ensure that changes made
during previous iterations of the debug process are discarded and will not affect a new session.
This can be done by adding:
monitor reset 1
Finally, since for debug configuration the program will run in SRAM, it must be uploaded to the
target. This is done with the load command:
load
Both the reset and load commands should be put in the ‘Run’ commands box.
Figure 5-20. Commands Configuration Tab
At this point, the configuration is correct and should be saved using the “Apply” button.