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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuring debug hardware for GDB9.9 Connections to a target without built-in GDB support (RVI-GDB)These are connections to targets where no GDB stub has been built into <strong>the</strong> target application,or when you want to perform halt-mode debugging. Connections of this type use <strong>the</strong> built-inGDB protocol interpreter of debug hardware to control <strong>the</strong> CPU directly, and are referred to asRVI-GDB connections. When you want to examine <strong>the</strong> internal state of <strong>the</strong> CPU (such asregisters, memory, and variables), <strong>the</strong> image on <strong>the</strong> target stops executing. After examining <strong>the</strong>required state, you must start <strong>the</strong> image again. The following figure shows <strong>the</strong> configuration:<strong>Debug</strong> hosttelnet<strong>Debug</strong> unit<strong>Configuration</strong>MechanismSet up JTAGscan chainTargetGDB4000, 4001,...GDB protocolGDB protocolinterpreterJTAGrun controlApplicationFigure 9-1 RVI-GDB connectionsNoteGDB does not support Semihosting over JTAG. Therefore, any prompts and messages that areoutput by <strong>the</strong> application cannot be displayed in your debugger.9.9.1 RVI-GDB ScenariosUse <strong>the</strong> RVI-GDB connection method to:• perform run and stop debugging of a single <strong>ARM</strong> processor• perform run and stop debugging with GDB at <strong>the</strong> same time as debugging <strong>the</strong> application.That is, for example, if connecting to a target with a GDB stub (Target-GDB connections),or if your target application requires TCP/IP communication with <strong>the</strong> debug host(Target-GDB-Virtual E<strong>the</strong>rnet connections).NoteWhen <strong>the</strong> image stops, so does <strong>the</strong> handling of interrupt routines. This might not always bedesirable when debugging a real-time system.9.9.2 PrerequisitesTo use <strong>the</strong> RVI-GDB connection method, it is recommended that you compile your targetapplication using a GNU toolchain for <strong>ARM</strong> architectures.9.9.3 ProcedureIf your application does not have GDB support linked-in, you can use <strong>the</strong> GDB protocol builtinto <strong>the</strong> debug hardware unit to debug your application. However, this controls <strong>the</strong> CPU directly,and <strong>the</strong> CPU stops whenever you want to examine its internal state.To debug an application through a RVI-GDB connection:1. Power-up your target hardware and debug hardware unit.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-11ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!