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.11 Connections to a target GDB stub using Virtual E<strong>the</strong>rnet/TTY mode(Target-GDB-Virtual E<strong>the</strong>rnet)If your target application requires TCP/IP communication with <strong>the</strong> debug host, you can connectto <strong>the</strong> target using Virtual E<strong>the</strong>rnet/TTY mode. Connections of this type are referred to asTarget-GDB-Virtual E<strong>the</strong>rnet connections. This method is an extension to that used forconnections to a target running an application with a GDB stub. The following figure shows anexample:<strong>Debug</strong> host<strong>Debug</strong> unit<strong>Configuration</strong>MechanismSet up JTAGscan chainTargetGDBBridged E<strong>the</strong>rnet(IP)VirtualE<strong>the</strong>rnetDCC(IP over DCC)ApplicationGDB stubFigure 9-3 Target-GDB-Virtual E<strong>the</strong>rnet connectionsIn this method, debug hardware provides a network bridging feature to targets, and enables atarget with only a JTAG connection to debug hardware to have access to <strong>the</strong> same networkresources available to debug hardware. This works by intercepting IP packets on <strong>the</strong> networkand examining <strong>the</strong>m, and those packets that are addressed to <strong>the</strong> target are <strong>the</strong>n sent over DCCalongside <strong>the</strong> normal GDB protocol. A driver is required on <strong>the</strong> target to interface <strong>the</strong> DCCchannel to <strong>the</strong> protocol stack of <strong>the</strong> target, making <strong>the</strong> bridged network connection appear as anE<strong>the</strong>rnet device on <strong>the</strong> target. IP is <strong>the</strong> only network layer protocol supported.NoteTo reduce <strong>the</strong> load on <strong>the</strong> DCC and JTAG connection, broadcast packets are not sent to <strong>the</strong>target.9.11.1 Target-GDB-Virtual E<strong>the</strong>rnet ScenarioUse <strong>the</strong> Target-GDB-Virtual E<strong>the</strong>rnet connection method to communicate with a standaloneapplication that has a TCP/IP stack. For example, an application might provide a web server thatserves web pages to <strong>the</strong> host.9.11.2 ProcedureTo use <strong>the</strong> Target-GDB-Virtual E<strong>the</strong>rnet connection method:• It is recommended that you compile <strong>the</strong> DCC driver and GDB stub into your targetapplication using a GNU toolchain for <strong>ARM</strong> ® architectures. The DCC driver is availableas a Linux OS download from <strong>the</strong> <strong>ARM</strong> products and solutions website.NoteOn <strong>the</strong> GDB connection to <strong>the</strong> target, you must enable DCC and Virtual E<strong>the</strong>rnet/TTYmode before starting <strong>the</strong> processor.• The target application must be running a TCP/IP stack.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-15ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!