8.3.1. About connecting to targets through RealView ICE

To connect to a target from GDB, you must configure RealView ICE to recognize your target devices. You do this by using rvigdbconfig to configure RealView ICE with the scan chain details. GDB is then connected to the core.

The procedure is:

  1. Power up your target hardware and RealView ICE unit.

  2. Launch RVConfig, and configure the core by following the steps described in Opening the RVConfig dialog box — standalone method.

  3. Run rvigdbconfig, specifying the appropriate rvc file:

    rvigdbconfig –f rvi.rvc
    
  4. Start GDB, load the symbols if required, and connect to the first core (using port 4000 of RealView ICE in this example):

    arm-elf-gdb(gdb) file demo.elf
    (gdb) target remote rvi5:4000
    Remote debugging using rvi5:40000x00000000 in $a ()
    (gdb)
    

    GDB is now connected to the core, and an image can be loaded and debugged.

For more information on the command syntax for rvigdbconfig, see Setting DCC parameters.

Copyright © 2002, 2004-2008 ARM Limited. All rights reserved.ARM DUI 0155J
Non-Confidential