20
J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
6 Flash download............................................................................................................247
6.1 Introduction ..........................................................................................248
6.2 Licensing...............................................................................................249
6.3 Supported devices..................................................................................250
6.4 Setup for various debuggers (internal flash) ..............................................251
6.4.1 IAR Embedded Workbench ......................................................................251
6.4.2 Keil MDK ...............................................................................................251
6.4.3 Mentor Sourcery CodeBench ....................................................................254
6.4.4 J-Link GDB Server..................................................................................254
6.4.5 J-Link Commander .................................................................................255
6.4.6 J-Link RDI .............................................................................................256
6.5 Setup for various debuggers (CFI flash) ....................................................257
6.5.1 IAR Embedded Workbench / Keil MDK .......................................................257
6.5.2 J-Link GDB Server..................................................................................258
6.5.3 J-Link commander..................................................................................258
6.6 Setup for various debuggers (SPIFI flash)..................................................259
6.7 QSPI flash support .................................................................................260
6.7.1 Setup the DLL for QSPI flash download .....................................................260
6.8 Using the DLL flash loaders in custom applications......................................261
6.9 Debugging applications that change flash contents at runtime ......................262
7 Flash breakpoints.........................................................................................................263
7.1 Introduction ..........................................................................................264
7.2 Licensing...............................................................................................265
7.2.1 Free for evaluation and non-commercial use ..............................................265
7.3 Supported devices..................................................................................266
7.4 Setup & compatibility with various debuggers ............................................267
7.4.1 Setup ...................................................................................................267
7.4.2 Compatibility with various debuggers ........................................................267
7.5 Flash Breakpoints in QSPI flash ................................................................268
7.5.1 Setup ...................................................................................................268
7.6 FAQ......................................................................................................269
8 Monitor Mode Debugging.............................................................................................271
8.1 Introduction ..........................................................................................272
8.2 Enable Monitor Debugging.......................................................................273
8.2.1 GDB based debug solutions .....................................................................273
8.2.2 IAR EWARM...........................................................................................273
8.2.3 Keil MDK-ARM (uVision) ..........................................................................274
8.2.4 J-Link Commander .................................................................................274
8.2.5 Generic way of enabling ..........................................................................274
8.3 Availability and limitations of monitor mode...............................................275
8.3.1 Cortex-M3.............................................................................................275
8.3.2 Cortex-M4.............................................................................................275
8.4 Monitor code .........................................................................................276
8.5 Debugging interrupts ..............................................................................277
8.6 Having servicing interrupts in debug mode ................................................278
8.7 Forwarding of Monitor Interrupts ..............................................................279
8.8 Target application performs reset (Cortex-M) .............................................280
9 Low Power Debugging.................................................................................................281
9.1 Introduction ..........................................................................................282
9.2 Activating low power mode handling for J-Link ...........................................283
9.2.1 SEGGER Embedded Studio ......................................................................283
9.2.2 Keil MDK-ARM........................................................................................283
9.2.3 IAR EWARM...........................................................................................283
9.2.4 Mentor Sourcery CodeBench for ARM ........................................................283
9.2.5 GDB + GDBServer based setups (Eclipse etc.)............................................283
9.3 Restrictions ...........................................................................................284