![CONITEC GALEP-5 Manual Download Page 26](http://html1.mh-extra.com/html/conitec/galep-5/galep-5_manual_2652523026.webp)
OpenOCD Interfaces
The OpenOCD software opens two network ports:
A port for controlling the software with a Telnet client.
A port that supports the
gdb
(Gnu Debugger) remote specifications.
Assigning "GND"-> Socket pin 26
Assigning "GND"-> Socket pin 27
Assigning "GND"-> Socket pin 28
Assigning "GND"-> Socket pin 29
Assigning "GND"-> Socket pin 30
Assigning "GND"-> Socket pin 31
Assigning "GND"-> Socket pin 32
Assigning "GND"-> Socket pin 33
Assigning "GND"-> Socket pin 34
Assigning "NTRST"-> Socket pin 23
Assigning "TDI"-> Socket pin 22
Assigning "TMS"-> Socket pin 21
Assigning "TCK"-> Socket pin 20
Assigning "TDO"-> Socket pin 18
Assigning "NRESET"-> Socket pin 17
Assigning button function 1 -> exec "btShort.script"...
Assigning button function 3 -> exec "btLong.script"...
Info: options.c:50 configuration_output_handler(): jtag_speed: 100, 100
Setting up socket...
Using 1.8V logic levels.
Target supply detected.
Info: jtag.c:1346 jtag_examine_chain(): JTAG device found: 0x05b0203f (Manufacturer: 0x01f,
Part: 0x5b02, Version: 0x0)
Telnet port
This port is defined in the config file, in the example above through the statement
telnet_port = 4444
. This
port number must be given when connecting with a Telnet client. Via Telnet, debugging commands can be
directly sent the the OpenOCD software, for instance:
Disply processor registers
Display and modify hardware breakpoints
Reset the target system
The output by OpenOCD scripts assigned to the GALEP-5D button (see above) are also sent to the Telnet
port. For detailed information please refer to the OpenOCD documentation.
gdb port
This port is also defined in the config file, for instance through
gdb_port = 3333
. The gdb (Gnu Debugger)
port is used by the gdb software for source level debugging.
Debugging with gdb
The debugger (“
gdb
”) runs on the target system. It has to be compiled for the target processor and is normally
part of the tool chain for a certain target system. When debugging an ARM based target you'll need a gdb
comüiled with ARM support. The gdb source code is freely available, thus anyone can compile the debugger
for any target. It runs on many platforms and can also be downloaded as a pre-compiled executable.
There are many frontend for easier debugging. Some scenarios are described below.
The shell frontend
Summary of Contents for GALEP-5
Page 15: ......