24.10.2012 Views

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.5 Multi-core debugging ...............................................................................99<br />

5.5.1 How multi-core debugging works ...............................................................99<br />

5.5.2 Using multi-core debugging in detail ........................................................ 100<br />

5.5.3 Things you should be aware of ................................................................ 101<br />

5.6 Connecting multiple J-<strong>Link</strong>s / J-<strong>Trace</strong>s to your PC ...................................... 103<br />

5.6.1 How does it work? ................................................................................. 103<br />

5.6.2 Configuring multiple J-<strong>Link</strong>s / J-<strong>Trace</strong>s ..................................................... 104<br />

5.6.3 Connecting to a J-<strong>Link</strong> / J-<strong>Trace</strong> with non default USB-Address .................... 105<br />

5.7 J-<strong>Link</strong> control panel................................................................................ 106<br />

5.7.1 Tabs .................................................................................................... 106<br />

5.8 Reset strategies .................................................................................... 112<br />

5.8.1 Strategies for ARM 7/9 devices ................................................................ 112<br />

5.8.2 Strategies for Cortex-M devices ............................................................... 114<br />

5.9 Using DCC for memory access ................................................................. 116<br />

5.9.1 What is required? .................................................................................. 116<br />

5.9.2 Target DCC handler ............................................................................... 116<br />

5.9.3 Target DCC abort handler ....................................................................... 116<br />

5.10 J-<strong>Link</strong> script files ................................................................................... 117<br />

5.10.1 Actions that can be customized ............................................................... 117<br />

5.10.2 Script file API functions .......................................................................... 117<br />

5.10.3 Global DLL variables .............................................................................. 120<br />

5.10.4 Global DLL constants.............................................................................. 122<br />

5.10.5 Script file language ................................................................................ 123<br />

5.10.6 Executing J-<strong>Link</strong> script files ..................................................................... 124<br />

5.11 Command strings .................................................................................. 125<br />

5.11.1 List of available commands ..................................................................... 125<br />

5.11.2 Using command strings .......................................................................... 131<br />

5.12 Switching off CPU clock during debug ....................................................... 133<br />

5.13 Cache handling...................................................................................... 134<br />

5.13.1 Cache coherency ................................................................................... 134<br />

5.13.2 Cache clean area ................................................................................... 134<br />

5.13.3 Cache handling of ARM7 cores................................................................. 134<br />

5.13.4 Cache handling of ARM9 cores................................................................. 134<br />

6 Flash download and flash breakpoints.........................................................................135<br />

6.1 Introduction.......................................................................................... 136<br />

6.2 Licensing .............................................................................................. 137<br />

6.3 Supported devices ................................................................................. 139<br />

6.4 Setup for different debuggers (internal flash) ............................................ 147<br />

6.4.1 IAR Embedded Workbench...................................................................... 147<br />

6.4.2 Keil MDK .............................................................................................. 148<br />

6.4.3 J-<strong>Link</strong> GDB Server ................................................................................. 150<br />

6.4.4 J-<strong>Link</strong> RDI ............................................................................................ 150<br />

6.5 Setup for different debuggers (CFI flash) .................................................. 151<br />

6.5.1 IAR Embedded Workbench / Keil MDK ...................................................... 151<br />

6.5.2 J-<strong>Link</strong> GDB Server ................................................................................. 152<br />

6.5.3 J-<strong>Link</strong> RDI ............................................................................................ 152<br />

7 Device specifics ...........................................................................................................153<br />

7.1 Analog Devices...................................................................................... 154<br />

7.1.1 ADuC7xxx ............................................................................................ 154<br />

7.2 ATMEL ................................................................................................. 156<br />

7.2.1 AT91SAM7............................................................................................ 156<br />

7.2.2 AT91SAM9............................................................................................ 158<br />

7.3 Freescale.............................................................................................. 159<br />

7.3.1 MAC71x ............................................................................................... 159<br />

7.4 Luminary Micro ..................................................................................... 160<br />

7.4.1 Unlocking LM3Sxxx devices..................................................................... 161<br />

7.4.2 Stellaris LM3S100 Series ........................................................................ 161<br />

7.4.3 Stellaris LM3S300 Series ........................................................................ 161<br />

J-<strong>Link</strong> / J-<strong>Trace</strong> (<strong>UM08001</strong>) © 2004-2010 SEGGER Microcontroller GmbH & Co. KG<br />

13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!