CHAPTER 16: Debug Interface
916 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
1. Overview and Configuration
This family contains a Serial Wire JTAG Debug Port (SWJ-DP).
Connecting an ICE to the SWJ-DP allows system debugging.
This series also contains an Embedded Trace Macro Cell (ETM) for tracing instructions and a Trace Port
Interface Unit (TPIU) that controls trace data.
TYPE3-M4 and TYPE5-M4 products also contains an AMBA AHB Trace Macro Cell (HTM) for AHB trace
data. Setting to HTM, it can use.
This section describes the functions of the pins to be used for debugging.
For details on the SWJ-DP, ETM, TPIU, HTM and system debug, see Cortex-M3 Technical Reference
Manual.
Features
Five pins are assigned to the SWJ-DP.
These five pins are initially dedicated to the JTAG. It is possible to change their functions to the serial wire
debug mode.
It is possible to output instruction trace by selecting it from max 16-bit trace data (TRACED0 to
TRACED15) and asynchronous trace data (SWO).
It is possible to output AHB trace by selecting it from max 16-bit trace data (TRACED0 to TRACED15).
ETM/HTM Block Diagram
HTM Settings
For products equipped HTM, HTM code has to be written in HTM code area.
HTM is enabled after power supply restart, and then HTM can use.
If HTM code area is other than HTM code values, HTM is disabled.
For the details of HTM code area and HTM code, see Flash Programming Manual of the product used.