25.02.2015 Views

SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...

SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...

SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...

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.

PRELIMINARY DATA<br />

Key concepts 15<br />

The <strong>SH</strong>debug link provides:<br />

• Full access to the physical address map (RAM, ROM, on-chip devices,<br />

external-devices). This allows access to the debug registers (see Section<br />

1.2.4: Debug registers on page 16).<br />

• <strong>SH</strong>-5-originated access to a 16 Mbyte address space mapped over the <strong>SH</strong>debug<br />

link.<br />

Allows a target debug agent (or any other code) to execute on the CPU without<br />

requiring any external RAM or ROM, and thus enables use of <strong>SH</strong>-5 without a<br />

traditional monitor ROM.<br />

The debug/development tool must not access this 16 Mbyte region via the<br />

<strong>SH</strong>debug link (this would require the <strong>SH</strong>-5 reflect the request back to the tool).<br />

The <strong>SH</strong>-5 behavior is undefined if this is attempted. The tool is expected to<br />

service such memory accesses locally, without involving the <strong>SH</strong>-5.<br />

• Control of the CPU via memory-mapped register.<br />

Allows the CPU to be suspended, resumed, forced to execute from a specified<br />

address, forced to generate a fast printf message, or forced to take a debug<br />

interrupt.<br />

• Streaming operations for CPU and bus trace information.<br />

Allows trace information gathered from the CPU and the on-chip busses to be<br />

copied to a specified area in the physical memory map (such as RAM or the<br />

<strong>SH</strong>debug link). This area acts as an external FIFO. The trace information can<br />

also be sent directly to the <strong>SH</strong>debug link using a special mode which compresses<br />

the trace message contents. This gives better throughput on the link.<br />

The <strong>SH</strong>debug link is suitable for connection to a debug adaptor board as part of a<br />

development tool (to provide code download and debug facilities). It can also be<br />

connected to specialized hardware debug systems (such as logic analyzers) to<br />

provide more complex facilities.<br />

D R A FT<br />

05-SA-10003 v1.0<br />

<strong>SuperH</strong>, Inc.<br />

<strong>SH</strong>-5 <strong>System</strong> <strong>Architecture</strong>, <strong>Volume</strong> 3: Debug

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

Saved successfully!

Ooh no, something went wrong!