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.

<strong>Debug</strong>ging with your debug hardware unit8.1 Post-mortem debuggingPost-mortem debugging enables you to examine <strong>the</strong> state of a system that has previously beenrunning but is currently not connected to debug hardware.8.1.1 PrerequisitesBefore you can examine a running target with debug hardware, you must configure <strong>the</strong> debughardware unit for that target. If you have a target that is operating without a debug hardware unitconnected, and you want to examine it to find out why it is behaving in a particular way, youmust power-up <strong>the</strong> debug hardware unit and configure <strong>the</strong> connection without disturbing <strong>the</strong>state of <strong>the</strong> target. This requires that <strong>the</strong> debug hardware unit is powered before it is connectedto <strong>the</strong> target.The debug hardware unit includes power conditioning and switching circuitry that enables youto plug and unplug <strong>the</strong> JTAG cable without affecting <strong>the</strong> target.NoteThe voltage reference used by <strong>the</strong> debug hardware unit JTAG circuit is generated from <strong>the</strong>VTref signal present on <strong>the</strong> JTAG connector. If this signal is not connected at <strong>the</strong> target, youmust modify <strong>the</strong> target or <strong>the</strong> JTAG cable to supply a suitable reference. Connecting VTref toVsupply is usually sufficient.8.1.2 ProcedureTo connect to a running target:1. Ensure that <strong>the</strong> JTAG input lines TDI, TMS, nSRST, and nTRST have pull-up resistors(normal practice), and TCK has a pull-down resistor, so that when <strong>the</strong> adaptor isdisconnected from <strong>the</strong> target <strong>the</strong>se lines are in <strong>the</strong>ir quiescent state.2. Plug <strong>the</strong> power jack into <strong>the</strong> debug hardware unit and wait for it to boot.3. Configure <strong>the</strong> debug hardware connection. You must do one of <strong>the</strong> following:• load a configuration that you have previously saved• manually configure <strong>the</strong> connection• autoconfigure using a separate test system.NoteDo not use autoconfigure on <strong>the</strong> target to be debugged, because doing so might reset <strong>the</strong>processor.4. If <strong>the</strong> target processor, such as an <strong>ARM</strong>7TDMI, does not have any system registers, youmust explicitly configure <strong>the</strong> endianness.NoteDo not automatically detect <strong>the</strong> endianness of target processors that do not have a systemregister. Doing so might disturb <strong>the</strong> state of <strong>the</strong> processor.5. Plug <strong>the</strong> JTAG cable into <strong>the</strong> target.CautionTo prevent unwanted resets during connection of <strong>the</strong> debug hardware, it is essential thatei<strong>the</strong>r:• <strong>the</strong> target and debug hardware are properly ear<strong>the</strong>d<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 8-2ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!