std1.0.0-beta-7 SafeC docs

Module debug::jtag

#include <std/debug/jtag.h> source

Hardware Debug Helpers (JTAG / SWD / Semihosting) Provides software breakpoint, semihosting output, and OpenOCD-compatible trace via ITM (Cortex-M) or T-trace stubs. Freestanding-safe.

Functions

debug_break
debug_semihost_putsWrite a null-terminated string to the debugger console via semihosting. No-op if running without a debugger (semihosting not enabled).
debug_semihost_putcWrite one byte to the debugger console.
itm_putcWrite a byte to ITM stimulus port port (0-31). No-op if ITM not enabled (checks TER register).
itm_put32Write a 32-bit word to ITM stimulus port port.
itm_enable_portEnable ITM stimulus port port.

Macros

ITM_STIMULUS_BASE
ITM_TCR_BASE
DBG_ASSERT