98 CHAPTER 3 J-Link software and documentation package
J-Link / J-Trace (UM08001) ©
2004-2017 SEGGER Microcontroller GmbH & Co. KG
3.3.3 Supported remote (monitor) commands
J-Link GDB Server comes with some functionalities 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 Explanation
clrbp Removes an instruction breakpoint.
cp15 Reads or writes from/to cp15 register.
device Select the specified target device.
DisableChecks
Do not check if an abort occurred after memory read
(ARM7/9 only).
EnableChecks
Check if an abort occurred after memory read (ARM7/9
only).
flash breakpoints Enables/Disables flash breakpoints.
getargs Get the arguments for the application.
go Starts the target CPU.
halt Halts the target CPU.
jtagconf Configures a JTAG scan chain with multiple devices on it.
memU8 Reads or writes a byte from/to given address.
memU16 Reads or writes a halfword from/to given address.
memU32 Reads or writes a word from/to given address.
reg Reads or writes from/to given register.
regs Reads and displays all CPU registers.
reset Resets and halts the target CPU.
semihosting breakOn-
Error
Enable or disable halting the target on semihosting error.
semihosting enable Enables semihosting.
semihosting IOClient Set semihosting I/O to be handled via Telnet port or GDB.
semihosting ARMSWI Sets the SWI number used for semihosting in ARM mode.
semihosting ThumbSWI
Sets the SWI number used for semihosting in thumb
mode.
setargs Set the arguments for the application.
setbp Sets an instruction breakpoint at a given address.
sleep Sleeps for a given time period.
speed Sets the JTAG speed of J-Link / J-Trace.
step Performs one or more single instruction steps.
SWO DisableTarget Undo target configuration for SWO and disable it in J-Link.
SWO EnableTarget Configure target for SWO and enable it in J-Link.
SWO GetMaxSpeed
Prints the maximum supported SWO speed for J-Link and
Target C P U .
SWO GetSpeedInfo Prints the available SWO speed and its minimum divider.
waithalt Waits for target to halt code execution.
wice Writes to given IceBreaker register.
Table 3.3: GDB remote commands