18
J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
3.1 Software overview................................................................................... 70
3.2 J-Link Commander (Command line tool)..................................................... 71
3.2.1 Commands............................................................................................. 72
3.2.2 Command line options ............................................................................. 88
3.2.3 Using command files................................................................................ 91
3.3 J-Link GDB Server................................................................................... 92
3.3.1 J-Link GDB Server CL (Windows, Linux, Mac) .............................................. 92
3.3.2 Debugging with J-Link GDB Server ............................................................ 93
3.3.3 Supported remote (monitor) commands ..................................................... 98
3.3.4 SEGGER-specific GDB protocol extensions .................................................110
3.3.5 Command line options ............................................................................115
3.3.6 Program termination...............................................................................126
3.3.7 Semihosting ..........................................................................................127
3.4 J-Link Remote Server .............................................................................128
3.4.1 List of available commands......................................................................128
3.4.2 Tunneling mode .....................................................................................129
3.5 J-Mem Memory Viewer............................................................................132
3.6 J-Flash..................................................................................................133
3.7 J-Link RTT Viewer...................................................................................134
3.7.1 RTT Viewer Startup ................................................................................134
3.7.2 Connection Settings................................................................................135
3.7.3 The Terminal Tabs..................................................................................135
3.7.4 Sending Input........................................................................................136
3.7.5 Logging Terminal output .........................................................................136
3.7.6 Logging Data .........................................................................................137
3.7.7 Command line options ............................................................................137
3.7.8 Menus and Shortcuts ..............................................................................139
3.7.9 Using "virtual" Terminals in RTT ...............................................................141
3.7.10 Using Text Control Codes ........................................................................141
3.8 J-Link SWO Viewer .................................................................................142
3.8.1 Usage...................................................................................................143
3.8.2 List of available command line options ......................................................143
3.8.3 Configure SWO output after device reset ...................................................145
3.8.4 Target example code for terminal output ...................................................145
3.9 SWO Analyzer........................................................................................148
3.10 JTAGLoad (Command line tool) ................................................................149
3.11 J-Link RDI (Remote Debug Interface)........................................................150
3.11.1 Flash download and flash breakpoints .......................................................150
3.12 Processor specific tools ...........................................................................151
3.12.1 J-Link STR91x Commander (Command line tool) ........................................151
3.12.2 J-Link STM32 Unlock (Command line tool) .................................................152
3.13 J-Link Software Developer Kit (SDK) .........................................................155
4 Setup............................................................................................................................157
4.1 Installing the J-Link software and documentation pack ................................158
4.1.1 Setup procedure ....................................................................................158
4.2 Setting up the USB interface....................................................................161
4.2.1 Verifying correct driver installation ...........................................................161
4.2.2 Uninstalling the J-Link USB driver.............................................................162
4.3 Setting up the IP interface.......................................................................164
4.3.1 Configuring J-Link using J-Link Configurator...............................................164
4.3.2 Configuring J-Link using the webinterface ..................................................164
4.4 FAQs ....................................................................................................166
4.5 J-Link Configurator.................................................................................167
4.5.1 Configure J-Links using the J-Link Configurator ..........................................167
4.6 J-Link USB identification..........................................................................169
4.6.1 Connecting to different J-Links connected to the same host PC via USB .........169
4.7 Using the J-Link DLL ...............................................................................171
4.7.1 What is the JLink DLL? ............................................................................171
4.7.2 Updating the DLL in third-party programs..................................................171
4.7.3 Determining the version of JLink DLL ........................................................172