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 GDB2. 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: rvigdbconfig –frvi.rvc4. Start GDB, load <strong>the</strong> symbols if required, and connect to <strong>the</strong> first processor (using port4000 of 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.NoteTo load and boot a complete system, use <strong>the</strong> rviload utility.5. Set up any breakpoints or o<strong>the</strong>r debugging features, <strong>the</strong>n run <strong>the</strong> application. <strong>Debug</strong> yourapplication in <strong>the</strong> usual way.9.9.4 See alsoTasks• 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.Reference• <strong>Debug</strong> hardware TCP/IP port numbering on page 9-6• Connection methods for each debugging mode on page 9-10• rvigdbconfig command syntax on page 9-27.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-12ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!