ARM DS-5 Using the Debug Hardware Configuration Utilities
ARM DS-5 Using the Debug Hardware Configuration Utilities
ARM DS-5 Using the Debug Hardware Configuration Utilities
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
ContentsChapter 7Chapter 8Chapter 9Chapter 10<strong>Using</strong> Trace7.1 About using trace hardware ..................................................................................... 7-27.2 Trace hardware capture rates .................................................................................. 7-37.3 Configuring trace lines (<strong>DS</strong>TREAM and RVT2 only) ............................................... 7-47.4 Configuring your debugger for trace capture ........................................................... 7-6<strong>Debug</strong>ging with your debug hardware unit8.1 Post-mortem debugging .......................................................................................... 8-28.2 Semihosting ............................................................................................................. 8-48.3 Adding an application SVC handler when using debug hardware ........................... 8-58.4 Cortex-M3 semihosting ............................................................................................ 8-78.5 <strong>Hardware</strong> breakpoints .............................................................................................. 8-88.6 Software instruction breakpoints .............................................................................. 8-98.7 Processor exceptions ............................................................................................ 8-108.8 Breakpoints and <strong>the</strong> program counter ................................................................... 8-118.9 Interaction between breakpoint handling in <strong>the</strong> debug hardware and your debugger ....8-128.10 Problems setting breakpoints ................................................................................ 8-148.11 Strategies used by debug hardware to debug cached processors ........................ 8-158.12 Considerations when debugging processors with caches enabled ....................... 8-168.13 <strong>Debug</strong>ging applications in ROM ............................................................................ 8-178.14 <strong>Debug</strong>ging from reset ............................................................................................ 8-188.15 <strong>Debug</strong>ging with a simulated reset .......................................................................... 8-198.16 <strong>Debug</strong>ging with a reset register ............................................................................. 8-208.17 <strong>Debug</strong>ging with a target reset ................................................................................ 8-218.18 <strong>Debug</strong>ging systems with ROM at <strong>the</strong> exception vector ......................................... 8-22Configuring debug hardware for GDB9.1 About configuring debug hardware for debugging with GDB ................................... 9-39.2 Feature support when debugging with GDB ............................................................ 9-49.3 <strong>Debug</strong>ging modes for GDB ...................................................................................... 9-59.4 <strong>Debug</strong> hardware TCP/IP port numbering ................................................................ 9-69.5 DCC modes ............................................................................................................. 9-79.6 About building for standalone target platforms ........................................................ 9-89.7 Methods of connecting from remote GDB sessions ................................................ 9-99.8 Connection methods for each debugging mode .................................................... 9-109.9 Connections to a target without built-in GDB support (RVI-GDB) ......................... 9-119.10 Connections to a target with a GDB stub (Target-GDB) ........................................ 9-139.11 Connections to a target GDB stub using Virtual E<strong>the</strong>rnet/TTY mode(Target-GDB-Virtual E<strong>the</strong>rnet) ............................................................................... 9-159.12 Connections to a target OS using gdbserver (GDBserver) .................................... 9-179.13 Connections to a target OS using NFS (GDB-NFS) .............................................. 9-199.14 Preparing your debug hardware for remote GDB connections .............................. 9-219.15 Connecting to targets from GDB through debug hardware ................................... 9-229.16 Setting DCC parameters ........................................................................................ 9-239.17 DCC and interrupts ................................................................................................ 9-259.18 Loading and booting a complete system ............................................................... 9-269.19 rvigdbconfig command syntax ............................................................................... 9-279.20 rviload command syntax ........................................................................................ 9-289.21 RVIahbload command syntax ................................................................................ 9-309.22 RVIvec command syntax ....................................................................................... 9-329.23 Multiprocessor debugging with GDB and debug hardware ................................... 9-34Troubleshooting your debug hardware unit10.1 Multiple programs attempting to scan .................................................................... 10-210.2 USB server not accessible ..................................................................................... 10-310.3 Connection times out ............................................................................................. 10-410.4 O<strong>the</strong>r active connections ....................................................................................... 10-510.5 A debug hardware unit is not listed ........................................................................ 10-6<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. viID021112Non-Confidential