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.

<strong>Debug</strong>ging with your debug hardware unit8.12 Considerations when debugging processors with caches enabledWhen debugging a processor with caches enabled, you might have to provide <strong>the</strong> address of anarea of memory on <strong>the</strong> target that can be used exclusively by debug hardware. On some targets,<strong>the</strong> debug software downloads code sequences to this area to perform various tasks, such ascleaning <strong>the</strong> cache, and accessing <strong>the</strong> system registers. <strong>Debug</strong> hardware does not preserve <strong>the</strong>contents of this area.A code sequence area is only required for certain processors where <strong>the</strong> required operationscannot be performed directly over JTAG. If debug hardware requires a code sequence area, andone has not been enabled, errors are displayed within <strong>the</strong> debugger. For example:• Error V28305 (Vehicle): Memory operation failed• Warning: Code sequence memory area size error• Unable to load code sequence into defined memory area.NoteThe code sequence area must be 128 bytes long and in a non-cacheable, readable and writeablearea.To set up a code sequence area, use <strong>the</strong> options for each specific processor in <strong>the</strong> <strong>Debug</strong><strong>Hardware</strong> Config utility. This provides access to configuration items for each processor for:• enabling code sequences• setting <strong>the</strong> address and size of <strong>the</strong> code sequence areas.NoteThese settings might also be available in your debugger Registers view. Any settings modifiedusing <strong>the</strong> Registers view in your debugger are only modified for <strong>the</strong> duration of <strong>the</strong> debugsession. Any settings modified using <strong>the</strong> <strong>Debug</strong> <strong>Hardware</strong> Config utility are persistent untilmodified again.8.12.1 See alsoTasks• Post-mortem debugging on page 8-2.Concepts• Semihosting on page 8-4• Strategies used by debug hardware to debug cached processors on page 8-15• <strong>Debug</strong>ging applications in ROM on page 8-17.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 8-16ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!