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.

Creating debug hardware target configurations5.17 <strong>Debug</strong> hardware device configuration settingsYou can configure settings that are specific to a target device on your development platform.The settings available depend on whe<strong>the</strong>r <strong>the</strong> device is a processor or a non-processor CoreSightdevice.5.17.1 Processor device settingsDepending on <strong>the</strong> processor that you have selected, a selection of <strong>the</strong> following controls isavailable:Allow execution with T-Bit ClearThe Cortex-M series processors can only execute Thumb2 code. However, <strong>the</strong>irxPSR contains a bit to configure <strong>ARM</strong>/Thumb state, that is initialized from <strong>the</strong>reset vector. This enables you to test <strong>the</strong> exception handler associated with thisexception type.Bypass memory protection when in debugThis option enables <strong>the</strong> bypass of any memory protection provided by hardware(such as a memory management or protection unit) whenever <strong>the</strong> target hardwareenters debug state. This means that you can access protected memory to setsoftware breakpoints in it, or to alter its contents.Clear breakpoint hardware on connectThis control is available if you are using <strong>the</strong> <strong>ARM</strong>11 family of processors. Thedebug logic of an <strong>ARM</strong>11 processor is not reset when a Test Access Port (TAP)reset is applied. Set this option to True to instruct <strong>the</strong> debug hardware unit toperform reset <strong>the</strong> debug logic each time you connect.Code Sequence settingsMost systems store variables and <strong>the</strong> stack and heap in RAM. However, in somesystems only Flash or ROM is mapped in memory at power-up and RAM mustbe enabled by software in <strong>the</strong> boot code.To perform certain operations with some targets, <strong>the</strong> debug hardware unit mustdownload a piece of code into memory and make <strong>the</strong> processor execute it. Thiscode must be located in a writable area of memory (RAM) and must be accessedonly by <strong>the</strong> JTAG tool.You can set <strong>the</strong> address and size of this code using <strong>the</strong> Code Sequence Addressand <strong>the</strong> Code Sequence Size (bytes) settings.When you connect with a debugger to one of <strong>the</strong>se targets, make sure that RAMis mapped in memory and that <strong>the</strong> cache clean code or code sequence address ismapped correctly. You can run a script from <strong>the</strong> command line to configure <strong>the</strong>target memory map straight after connecting to <strong>the</strong> target.This area of memory must be:• unused by <strong>the</strong> target• readable• writable• non-cacheable (for cached targets)• at least 128 bytes in size.The debug software downloads code sequences to this area to perform varioustasks, such as cleaning <strong>the</strong> cache and accessing certain system registers on targetssuch as <strong>ARM</strong>920T and <strong>ARM</strong>1136JF-S. It does not preserve <strong>the</strong> contents of thisarea.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 5-26ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!