J-Link / J-Trace (UM08001) © 2004-2011 SEGGER Microcontroller GmbH & Co. KG
15
5.4 SWD interface ....................................................................................... 105
5.4.1 SWD speed........................................................................................... 105
5.4.2 SWO .................................................................................................... 105
5.5 Multi-core debugging ............................................................................. 107
5.5.1 How multi-core debugging works ............................................................. 107
5.5.2 Using multi-core debugging in detail ........................................................ 108
5.5.3 Things you should be aware of ................................................................ 109
5.6 Connecting multiple J-Links / J-Traces to your PC ...................................... 111
5.6.1 How does it work? ................................................................................. 111
5.7 J-Link control panel................................................................................ 113
5.7.1 Tabs .................................................................................................... 113
5.8 Reset strategies .................................................................................... 119
5.8.1 Strategies for ARM 7/9 devices................................................................ 119
5.8.2 Strategies for Cortex-M devices ............................................................... 121
5.9 Using DCC for memory access ................................................................. 123
5.9.1 What is required? .................................................................................. 123
5.9.2 Target DCC handler ............................................................................... 123
5.9.3 Target DCC abort handler ....................................................................... 123
5.10 J-Link script files ................................................................................... 124
5.10.1 Actions that can be customized ............................................................... 124
5.10.2 Script file API functions .......................................................................... 124
5.10.3 Global DLL variables .............................................................................. 128
5.10.4 Global DLL constants.............................................................................. 131
5.10.5 Script file language ................................................................................ 132
5.10.6 Script file writing example ...................................................................... 133
5.10.7 Executing J-Link script files ..................................................................... 133
5.11 Command strings .................................................................................. 135
5.11.1 List of available commands ..................................................................... 135
5.11.2 Using command strings .......................................................................... 141
5.12 Switching off CPU clock during debug ....................................................... 143
5.13 Cache handling...................................................................................... 144
5.13.1 Cache coherency ................................................................................... 144
5.13.2 Cache clean area ................................................................................... 144
5.13.3 Cache handling of ARM7 cores................................................................. 144
5.13.4 Cache handling of ARM9 cores................................................................. 144
6 Flash download............................................................................................................145
6.1 Introduction.......................................................................................... 146
6.2 Licensing .............................................................................................. 147
6.3 Supported devices ................................................................................. 148
6.4 Setup for various debuggers (internal flash) .............................................. 149
6.4.1 IAR Embedded Workbench...................................................................... 149
6.4.2 Keil MDK .............................................................................................. 149
6.4.3 J-Link GDB Server ................................................................................. 151
6.4.4 J-Link Commander................................................................................. 152
6.4.5 J-Link RDI ............................................................................................ 152
6.5 Setup for various debuggers (CFI flash).................................................... 153
6.5.1 IAR Embedded Workbench / Keil MDK ...................................................... 153
6.5.2 J-Link GDB Server ................................................................................. 154
6.5.3 J-Link commander ................................................................................. 154
6.6 Using the DLL flash loaders in custom applications ..................................... 155
7 Flash breakpoints.........................................................................................................157
7.1 Introduction.......................................................................................... 158
7.2 Licensing .............................................................................................. 159
7.2.1 24h flash breakpoint trial license ............................................................. 159
7.3 Supported devices ................................................................................. 160
7.4 Setup & compatibility with various debuggers............................................ 161
7.4.1 Setup................................................................................................... 161
7.4.2 Compatibility with various debuggers ....................................................... 161