254
SAM4CP [DATASHEET]
43051E–ATPL–08/14
13.
Debug and Test Features
13.1
Description
The SAM4 Series microcontrollers feature a number of complementary debug and test capabilities. The Serial
Wire/JTAG Debug Port (SWJ-DP) combining a Serial Wire Debug Port (SW-DP) and JTAG Debug (JTAG-DP) port is
used for standard debugging functions, such as downloading code and single-stepping through programs. It also
embeds a serial wire trace.
13.2
Associated Documentation
The SAM4CP implements the standard ARM CoreSight
Macrocell. For further detailed CoreSight information, the
following reference documents are available from the ARM website:
Cortex-M4/M4F Technical Reference Manual (ARM DDI 0439C).
CoreSight Technology System Design Guide (ARM DGI 0012D).
CoreSight Components Technical Reference Manual (ARM DDI 0314H).
ARM Debug Interface v5 Architecture Specification (Doc. ARM IHI 0031A).
ARMv7-M Architecture Reference Manual (ARM DDI 0403D).
13.3
Embedded Characteristics
Dual Core Debugging with common Serial Wire Debug Port (SW-DP) and Serial Wire JTAG Debug Port (SWJ-DP)
debug access port connected to both cores.
Star Topology AHB-AP Debug Access Port Implementation with common SW-DP / SWJ-DP providing higher
performance than daisy-chain topology.
Possibility to halt each core on debug event on the other core (hardware).
Possibility to restart each core when the other core has restarted (hardware).
Synchronization and software cross-triggering with Debugger.
Instrumentation Trace Macrocell (ITM) on both core for support of printf style debugging.
Mux 2-1 to trace chosen core (limit the number of out put pin).
Single wire Viewer or clock mode (4-bit parallel output ports).
Debug access to all memory and registers in the system, including Cortex-M4 register bank when the core is
running, halted, or held in reset.
Flash Patch and Breakpoint (FPB) unit for implementing breakpoints and code patches.
Data Watchpoint and Trace (DWT) unit for implementing watch points, data tracing, and system profiling.
IEEE 1149.1 JTAG Boundary scan on All Digital Pins.