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.15 Connecting to targets from GDB through debug hardware9.15.1 See alsoTo connect to a target from GDB, you must configure debug hardware to recognize your targetdevices. You do this by using rvigdbconfig to configure debug hardware with <strong>the</strong> scan chaindetails. GDB is <strong>the</strong>n connected to <strong>the</strong> processor.To connect to a target from GDB:1. Power-up your target hardware and debug hardware unit.2. Start <strong>the</strong> <strong>Debug</strong> <strong>Hardware</strong> Config utility, and configure <strong>the</strong> processor.3. Run rvigdbconfig, specifying <strong>the</strong> appropriate rvc file:rvigdbconfig –f rvi.rvc4. Start GDB, load <strong>the</strong> symbols if required, and connect to <strong>the</strong> first processor (using port4000 of your debug hardware in this example):arm-elf-gdb(gdb) file demo.elf(gdb) target remote rvi5:4000Remote debugging using rvi5:40000x00000000 in $a ()(gdb)GDB is now connected to <strong>the</strong> processor, and an image can be loaded and debugged.Tasks• Starting <strong>the</strong> debug hardware configuration utilities on page 2-3• Setting DCC parameters on page 9-23.Reference• <strong>Debug</strong> hardware TCP/IP port numbering on page 9-6• DCC modes on page 9-7• rvigdbconfig command syntax on page 9-27.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-22ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!