05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

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.

Debug Register Interfaces<br />

C6.2 Reset <strong>and</strong> power-down support<br />

This section contains the following subsections:<br />

Debug guidelines for systems with energy management capability<br />

Power domains <strong>and</strong> debug on page C6-5<br />

The OS Save <strong>and</strong> Restore mechanism on page C6-8<br />

Recommended reset scheme for v7 Debug on page C6-16.<br />

C6.2.1 Debug guidelines for systems with energy management capability<br />

<strong>ARM</strong>v7 processors can be built with energy management capabilities. This section describes how to use the<br />

v7 Debug features to debug software running on these systems.<br />

v7 Debug only permits debugging software that is running on a system where:<br />

energy-saving measures are taken only when the processor is in an idle state<br />

it is a function of the operating system, or other supervisor code, to take any implemented<br />

energy-saving measures.<br />

The measures that the OS can take to save energy during an idle state can be split in two groups:<br />

St<strong>and</strong>by The OS takes some measures, including using IMPLEMENTATION DEFINED features, to<br />

reduce energy consumption. The processor preserves the processor state, including the<br />

debug logic state. Changing from st<strong>and</strong>by to normal operation does not involve a reset of<br />

the processor.<br />

Power-down The OS takes some measures to reduce energy consumption. These measures mean the<br />

processor cannot preserve the processor state, <strong>and</strong> therefore the measures taken must<br />

include the OS saving any processor state it requires not to be lost. Changing from<br />

power-down to normal operation must include:<br />

a reset of the processor, after the power level has been restored<br />

reinstallation of the processor state by the OS.<br />

St<strong>and</strong>by is the least invasive OS energy saving state. It implies only that the processor is unavailable, <strong>and</strong><br />

does not clear any of the debug settings. For st<strong>and</strong>by, v7 Debug prescribes only the following:<br />

If the processor is in st<strong>and</strong>by <strong>and</strong> a Halting debug event is triggered the processor must leave st<strong>and</strong>by<br />

to h<strong>and</strong>le the debug event. If the processor executed a WFI or WFE instruction to enter st<strong>and</strong>by then that<br />

instruction is retired.<br />

If the processor is in st<strong>and</strong>by <strong>and</strong> the external debug or memory-mapped interface is accessed, the<br />

processor must automatically:<br />

— leave st<strong>and</strong>by<br />

— respond to the debug transaction<br />

— go back to st<strong>and</strong>by.<br />

This is possible because the external debug <strong>and</strong> memory-mapped interface can insert wait states, for<br />

example by holding PREADYDBG LOW, until the processor has left st<strong>and</strong>by.<br />

C6-4 Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0406B

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

Saved successfully!

Ooh no, something went wrong!