09.12.2012 Views

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

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<br />

Example 12-24 Writing registers in stall mode<br />

WriteRegisterInStallMode(int Rd, uint32 value)<br />

{<br />

// Step 1. Write the value to the DTRRX.<br />

// Write stalls until the DTRRX is ready.<br />

WriteDebugRegister(35, value);<br />

// Step 2. Write the opcode for MRC p14, 0, Rd, c5, c0 to the ITR.<br />

// Write stalls until the ITR is ready.<br />

WriteDebugRegister(33, 0xEE100E15 + (Rd

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

Saved successfully!

Ooh no, something went wrong!