SAM ITM Trace

MPLAB ICE 4 is capable of streaming UART-format ITM trace to the host computer. Trace is captured on the TRACE/SWO pin of the 10-pin header (JTAG TDO pin). Data is buffered internally on the MPLAB ICE 4 and is sent over the trace interface to the host computer. The maximum reliable data rate is about 4 MB/s at this time.

Note: You can set the ITM baud rate in MPLAB X IDE. See Set Up ITM in MPLAB X IDE.
Figure 1. ITM Block Diagram

The ITM contains the following sub-blocks:

Timestamp

Generates timestamp packet.

Sync control

ITM synchronizer.

Arbiter

Arbitrates between synchronous, timestamp, and SWIT packet.

FIFO

ATB First In First Out (FIFO).

Emitter

ATB registered emitter.

Data is written to the stimulus registers using the APB interface. This data is then transmitted on the ATB interface as SWIT packets .