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 GDB9.5 DCC modesIf your target application communicates using DCC, you must configure <strong>the</strong> DCC mode. Youcan set <strong>the</strong> following DCC modes:Mode 0: raw DCCRaw, unprocessed, data is fed to <strong>the</strong> client through <strong>the</strong> DCC register on <strong>the</strong> target.Mode 1: redirected raw DCCIn this mode, <strong>the</strong> data is fed over TCP/IP ports starting at 5000. Data is sent from<strong>the</strong> host to <strong>the</strong> target 4 bytes at a time. If fewer than 4 bytes are available, <strong>the</strong> datais padded with 0 bytes until it is 4 bytes long. Data from <strong>the</strong> target to <strong>the</strong> host isreceived 4 bytes at a time, and no padding or trimming is performed.NoteIt is recommended that you use <strong>the</strong> Virtual E<strong>the</strong>rnet/TTY mode (mode 2).However, if <strong>the</strong> Virtual E<strong>the</strong>rnet/TTY mode is unsuitable for your application,<strong>the</strong>n you can use mode 1 DCC but you must also implement a suitablecommunications protocol.Mode 2: Virtual E<strong>the</strong>rnet/TTY modeVirtual E<strong>the</strong>rnet/TTY is used for providing virtual serial and E<strong>the</strong>rnetconnections to <strong>the</strong> target. As far as <strong>the</strong> debug host and <strong>the</strong> target are concerned,Virtual E<strong>the</strong>rnet/TTY mode is a debug hardware feature that provides:• A virtual E<strong>the</strong>rnet feature using <strong>the</strong> DCC channel and a collection ofsoftware tools in debug hardware and <strong>the</strong> host PC. It enables TCP/IP to beused to <strong>the</strong> target as though <strong>the</strong> target has an E<strong>the</strong>rnet port of its own.• A virtual serial port feature using <strong>the</strong> DCC channel and a collection ofsoftware tools in debug hardware and <strong>the</strong> host PC.9.5.1 See alsoTasks• Connecting to targets from GDB through debug hardware on page 9-22.Concepts• Setting DCC parameters on page 9-23• DCC and interrupts on page 9-25.Reference• <strong>Debug</strong> hardware TCP/IP port numbering on page 9-6• rvigdbconfig command syntax on page 9-27• rviload command syntax on page 9-28.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-7ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!