ITM (Instrumentation Trace Macrocell)
A trace block in ARM Cortex-M cores that lets firmware stream log text and events to the debugger without tying up a UART.
The ITM has 32 stimulus ports. Firmware writes a character to a port — CMSIS provides a ready-made ITM_SendChar() — and the hardware packetises it and sends it out over the SWO pin to the debug probe. A write costs a few clock cycles, so printf over ITM disturbs timing-sensitive code far less than a serial port, or semihosting, which halts the CPU on every call.
The block can also emit timestamps and sample the program counter, giving a rough profile with no instrumentation at all. The catch: ITM is present on Cortex-M3, M4 and M7 but missing from the budget M0 and M0+. There you make do with SEGGER RTT or a spare GPIO pin.