3.3.3
Supported remote (monitor) commands
J-Link GDB Server comes with some functionality which are not part of the standard
GDB. These functions can be called either via a gdbinit file passed to GDB Server or
via monitor commands passed directly to GDB, forwarding them to GDB Server.
To indicate to GDB to forward the command to GDB Server 'monitor' has to be
prepended to the call. For example a reset can be triggered in the gdbinit file with
"reset" or via GDB with "monitor reset".
Following remote commands are available:
Remote command
clrbp
cp15
device
DisableChecks
EnableChecks
flash breakpoints
getargs
go
halt
jtagconf
memU8
memU16
memU32
reg
regs
reset
semihosting breakOn-
Error
semihosting enable
semihosting IOClient
semihosting ARMSWI
semihosting ThumbSWI
setargs
setbp
sleep
speed
step
SWO DisableTarget
SWO EnableTarget
SWO GetMaxSpeed
SWO GetSpeedInfo
waithalt
wice
Table 3.2: GDB remote commands
J-Link / J-Trace (UM08001)
Removes an instruction breakpoint.
Reads or writes from/to cp15 register.
Select the specified target device.
Do not check if an abort occurred after memory read
(ARM7/9 only).
Check if an abort occurred after memory read (ARM7/9
only).
Enables/Disables flash breakpoints.
Get the arguments for the application.
Starts the target CPU.
Halts the target CPU.
Configures a JTAG scan chain with multiple devices on it.
Reads or writes a byte from/to given address.
Reads or writes a halfword from/to given address.
Reads or writes a word from/to given address.
Reads or writes from/to given register.
Reads and displays all CPU registers.
Resets and halts the target CPU.
Enable or disable halting the target on semihosting error.
Enables semihosting.
Set semihosting I/O to be handled via Telnet port or GDB.
Sets the SWI number used for semihosting in ARM mode.
Sets the SWI number used for semihosting in thumb
mode.
Set the arguments for the application.
Sets an instruction breakpoint at a given address.
Sleeps for a given time period.
Sets the JTAG speed of J-Link / J-Trace.
Performs one or more single instruction steps.
Undo target configuration for SWO and disable it in J-Link.
Configure target for SWO and enable it in J-Link.
Prints the maximum supported SWO speed for J-Link and
Target CPU.
Prints the available SWO speed and its minimum divider.
Waits for target to halt code execution.
Writes to given IceBreaker register.
© 2004-2013 SEGGER Microcontroller GmbH & Co. KG
Explanation
71
Need help?
Do you have a question about the J-Link and is the answer not in the manual?