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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WriteDCC MRC p14, 0, PC, c0, c1, 0<br />

BCS WriteDCC<br />

MCR p14, 0, Rd, c0, c5, 0<br />

BX lr<br />

Debug<br />

Example 12-3 shows the sequence of instructions for sending data to the debugger through the<br />

receive channel.<br />

; r0 -> word sent by the debugger<br />

ReadDCC MRC p14, 0, PC, c0, c1, 0<br />

BNE ReadDCC<br />

MRC p14, 0, Rd, c0, c5, 0<br />

BX lr<br />

Debugger access to the DCC<br />

Example 12-3 Receive data transfer (target end)<br />

A debugger accessing the DCC through the external interface when not in debug state can use<br />

the pseudo-code operations as shown in this section.<br />

Example 12-4 shows the code for transmit data transfer.<br />

uint32 ReadDCC()<br />

{<br />

// Step 1. Poll DSCR until DTRTXfull is set to 1.<br />

repeat<br />

{<br />

scr := ReadDebugRegister(34);<br />

}<br />

until (dscr & (1

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

Saved successfully!

Ooh no, something went wrong!