12.07.2015 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Configuring debug hardware for GDB9.8 Connection methods for each debugging modeHow you connect to a target determines <strong>the</strong> debugging mode. The following connectionmethods are available for each debugging mode:9.8.1 Halt-mode debuggingHalt-mode debugging is <strong>the</strong> simplest method of debugging a target with GDB. You directlyconnect to debug hardware, that <strong>the</strong>n controls <strong>the</strong> starting and stopping of <strong>the</strong> processor. Thismethod of connecting is subsequently referred to as an RVI-GDB connection.9.8.2 Monitor-mode debugging9.8.3 See alsoMonitor-mode debugging requires that your target application communicate with GDB using<strong>the</strong> <strong>Debug</strong> Communications Channel (DCC) of an <strong>ARM</strong> architecture-based processor.However, if your target application includes an E<strong>the</strong>rnet feature, you do not have to use DCC.Different DCC modes are available depending on <strong>the</strong> requirements of your target.The connection methods for Monitor-mode debugging are:Target-GDB connectionsSemi-transparent connections to GDB stubs. The GDB stub communicates with<strong>the</strong> GDB client using <strong>the</strong> DCC channel as a serial port. The debug hardware unitmakes this connection available on a TCP/IP port to which <strong>the</strong> GDB clinetconnects. The GDB stub must be compiled into <strong>the</strong> target application.Target-GDB-Virtual E<strong>the</strong>rnet connectionsAn extension to Target-GDB connections for standalone applications running anIP stack. The GDB stub communicates with <strong>the</strong> GDB client using <strong>the</strong> DCCchannel as an E<strong>the</strong>rnet channel. The debug hardware unit makes this connectionavailable on a TCP/IP port to which <strong>the</strong> GDB client connects.GDBserver connectionsAn alternative to Target-GDB-Virtual E<strong>the</strong>rnet connections where <strong>the</strong> target isrunning gdbserver running under an operating system (OS).GDB-NFS connectionsConnections to <strong>the</strong> root filesystem on <strong>the</strong> target OS that is mounted over NFS. Thedebug hardware unit acts as a bridge between <strong>the</strong> debug host and <strong>the</strong> target OS.Tasks• Connections to a target without built-in GDB support (RVI-GDB) on page 9-11• Connections to a target with a GDB stub (Target-GDB) on page 9-13• Connections to a target GDB stub using Virtual E<strong>the</strong>rnet/TTY mode (Target-GDB-VirtualE<strong>the</strong>rnet) on page 9-15• Connections to a target OS using gdbserver (GDBserver) on page 9-17• Connections to a target OS using NFS (GDB-NFS) on page 9-19.Concepts• DCC modes on page 9-7.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-10ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!