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.10 Connections to a target with a GDB stub (Target-GDB)These are connections to a target that is running an application with a GDB stub, and are referredto as Target-GDB connections. The GDB stub enables <strong>the</strong> target application to communicatewith a host application through debug hardware, using <strong>the</strong> DCC of an <strong>ARM</strong> architecture-basedprocessor. The DCC carries <strong>the</strong> GDB protocol packets between <strong>the</strong> target and <strong>the</strong> remote GDBsession over <strong>the</strong> TCP/IP ports 5000, 5001,... as shown in <strong>the</strong> following figure:<strong>Debug</strong> host<strong>Debug</strong> unit<strong>Configuration</strong>MechanismSet up JTAGscan chainTargetGDB5000, 5001,...Telnet(Serial over IP)Virtual TTYDCCApplicationGDB stubFigure 9-2 Target-GDB connections9.10.1 Target-GDB ScenariosUse <strong>the</strong> Target-GDB connection method to:• debug a target system that does not have an OS• debug a target system with an OS that supports GDB.9.10.2 PrerequisitesTo use <strong>the</strong> Target-GDB connection method, it is recommended that you compile <strong>the</strong> DCC driverand GDB stub into your target application using a GNU toolchain for <strong>ARM</strong> architectures. Youcan ei<strong>the</strong>r:• link <strong>the</strong> example GDB stub into your target application or operating system• port your existing serial GDB stub to use <strong>the</strong> DCC driver.NoteOn <strong>the</strong> GDB connection to <strong>the</strong> target, it is recommended that you enable DCC and VirtualE<strong>the</strong>rnet/TTY mode before starting <strong>the</strong> processor.9.10.3 ProcedureIf your application includes a target-resident GDB stub, it can communicate over DCC.To debug an application using a Target-GDB connection:1. Power-up your target hardware and debug hardware unit.2. Configure <strong>the</strong> processor using rvconfig, using ei<strong>the</strong>r automatic or manual configuration.Save <strong>the</strong> rvc file in a convenient location.3. Run rvigdbconfig, specifying <strong>the</strong> rvc file that was created in step 2, and <strong>the</strong> appropriateDCC mode, for example mode 2: rvigdbconfig –f rvi.rvc -d 2:24. Start GDB, load <strong>the</strong> symbols if required, and connect to <strong>the</strong> second processor (forexample) to load and run your application in <strong>the</strong> usual way. This example uses port 4001of debug hardware:<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-13ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!