118
Syntax
-endian <endianess>
Example
jlinkgdbserver -endian little
3.3.5.4 -if
Description
Selects the target interface which is used by J-Link to connect to the device. The
default value is JTAG.
Note:
Using GDB Server CL this option is mandatory to correctly connect to the
target, and should be given before connection via GDB.
Syntax
-if <Interface>
Example
jlinkgdbserver -if SWD
Add. information
Currently, the following values are accepted for <Interface>:
•
JTAG
•
SWD
•
FINE
•
2-wire-JTAG-PIC32
3.3.5.5 -ir
Description
Initializes the CPU register with default values on startup.
Note:
For the GUI version, this setting is persistent for following uses of GDB
Server until changed via -noir or the GUI.
Example
jlinkgdbserver -ir
3.3.5.6 -excdbg
Syntax
-excdbg <nSteps>
Description
Enables exception debugging. Exceptions on ARM CPUs are handled by exception
handlers. Exception debugging makes the debugging of exceptions more user-
friendly by passing a signal to the GDB client and returning to the causative instruc-
tion.
In order to do this, a special exception handler is required as follows:
__attribute((naked)) void OnHardFault(void){
__asm volatile (
" bkpt 10 \n"
" bx lr
);
}
J-Link / J-Trace (UM08001)
\n"
CHAPTER 3
J-Link software and documentation package
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
Need help?
Do you have a question about the J-Link and is the answer not in the manual?