20
3.7.5 Logging Terminal output .................................................................... 54
3.7.6 Logging Data ....................................................................................54
3.7.7 Command line options ....................................................................... 55
3.7.8 Menus and Shortcuts .........................................................................57
3.7.9 Using "virtual" Terminals in RTT .......................................................... 59
3.7.10 Using Text Control Codes ................................................................. 59
3.8 J-Link SWO Viewer .......................................................................................60
3.8.1 J-Link SWO Viewer CL ....................................................................... 60
3.8.2 Usage .............................................................................................. 61
3.8.3 List of available command line options .................................................61
3.8.4 Configure SWO output after device reset ..............................................63
3.8.5 Target example code for terminal output ..............................................64
3.9 SWO Analyzer ..............................................................................................66
3.10 JTAGLoad (Command line tool) .................................................................... 67
3.11 J-Link RDI (Remote Debug Interface) ........................................................... 69
3.11.1 Flash download and flash breakpoints ................................................ 69
3.12 Processor specific tools ............................................................................... 70
3.12.1 J-Link STR91x Commander (Command line tool) ................................. 70
3.12.2 J-Link STM32 Unlock (Command line tool) .......................................... 73
3.13 J-Link Software Developer Kit (SDK) .............................................................76
4 J-Link GDB Server ......................................................................................................77
4.1 J-Link GDB Server CL (Windows, Linux, Mac) .................................................. 79
4.2 Debugging with J-Link GDB Server .................................................................80
4.2.1 Setting up GDB Server GUI version .....................................................80
4.2.2 Setting up GDB Server CL version .......................................................80
4.2.3 GDB Server user interface ..................................................................81
4.2.4 Running GDB from different programs ................................................. 82
4.3 Supported remote (monitor) commands ..........................................................85
4.3.1 clrbp ................................................................................................86
4.3.2 cp15 ................................................................................................87
4.3.3 device ..............................................................................................87
4.3.4 DisableChecks ...................................................................................87
4.3.5 EnableChecks ................................................................................... 88
4.3.6 flash breakpoints ...............................................................................88
4.3.7 flash erase ....................................................................................... 88
4.3.8 getargs ............................................................................................ 88
4.3.9 go ................................................................................................... 88
4.3.10 halt ............................................................................................... 89
4.3.11 interface .........................................................................................89
4.3.12 jtagconf ..........................................................................................89
4.3.13 memU8 .......................................................................................... 90
4.3.14 memU16 ........................................................................................ 90
4.3.15 memU32 ........................................................................................ 90
4.3.16 reg ................................................................................................ 91
4.3.17 regs ...............................................................................................91
4.3.18 reset ..............................................................................................91
4.3.19 semihosting breakOnError ................................................................ 92
4.3.20 semihosting enable ..........................................................................92
4.3.21 semihosting IOClient ........................................................................92
4.3.22 semihosting ARMSWI ....................................................................... 93
4.3.23 semihosting ThumbSWI ....................................................................93
4.3.24 setargs ...........................................................................................93
4.3.25 setbp ............................................................................................. 94
4.3.26 sleep ..............................................................................................94
4.3.27 speed .............................................................................................94
4.3.28 step ............................................................................................... 95
4.3.29 SWO DisableTarget .......................................................................... 95
4.3.30 SWO EnableTarget ........................................................................... 95
J-Link / J-Trace (UM08001) © 2004-2021 SEGGER Microcontroller GmbH