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.16 Setting DCC parametersE<strong>the</strong>rnet bridging works by examining incoming packets at debug hardware, <strong>the</strong>n decidingwhich are destined for debug hardware itself and which are destined for <strong>the</strong> target. To do this,debug hardware must know <strong>the</strong> IP address, subnet mask and default gateway parameters for <strong>the</strong>target. These parameters are normally determined through DHCP, where <strong>the</strong> target asks for aconfiguration, and one is supplied by a server over <strong>the</strong> network. In this case, debug hardware isable to intercept <strong>the</strong> incoming DHCP packet containing <strong>the</strong> parameters and configure itselfappropriately. It is, however, possible to configure a target with a static IP address. In this case<strong>the</strong>re is no DHCP transaction to intercept, and debug hardware has no way of determining <strong>the</strong>target configuration. You must set <strong>the</strong>se parameters in debug hardware for correct operation.You can configure DCC E<strong>the</strong>rnet bridging with <strong>the</strong> rvigdbconfig command, and you must set<strong>the</strong> appropriate parameter when using DCC mode.If you use rviload, you must set <strong>the</strong> DCC mode to ei<strong>the</strong>r VEC or VEP.NoteWhen E<strong>the</strong>rnet bridging is running, normal LAN services are accessible (including DHCP andNFS).9.16.1 Examples of setting DCC parametersrvigdbconfig –f rvi.rvc -d 1:2sets device 1 (<strong>the</strong> first device on <strong>the</strong> scan chain) to DCC mode 2.Additional devices are configured in a similar way. For example:rvigdbconfig –f rvi.rvc -d 1:2 -d 2:2configures devices 1 and 2 to mode 2.The IP parameters for static IP configurations are set up in <strong>the</strong> following way:rvigdbconfig –f rvi.rvc –d 1:2 –s 1:10.0.0.10:255.255.255.0:10.0.0.1This configures device 1 to use DCC mode 2 with IP address 10.0.0.10, subnet mask255.255.255.0, and default gateway 10.0.0.1. This format can be used to configure multipleprocessors if required. For example:rvigdbconfig –f rvi.rvc –d 1:2 –d 2:2 –s 1:10.0.0.10:255.255.255.0:10.0.0.1 –s2:10.0.0.11:255.255.255.0:10.0.0.19.16.2 See alsoTasks• Configuring a target processor for virtual E<strong>the</strong>rnet on page 5-51• Connections to a target with a GDB stub (Target-GDB) on page 9-13• Connecting to targets from GDB through debug hardware on page 9-22.Concepts• DCC and interrupts on page 9-25.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-23ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!