Advanced Trace Software Pack
June 15, 2026 ยท View on GitHub
Overview
The Advanced Trace utility is a trace management system for STM32 microcontrollers.
Description and Usage
Description
This utility is used for debugging or for communication with another system, such as a console or monitoring tool, over UART or a custom input/output interface.
The main features of Advanced Trace are:
- Adjustable FIFO size
- Custom FIFO memory address
- Conditional tracing (verbosity, region masks)
- Trace timestamping
- Overrun detection and reporting
- Unchunked continuous streaming
- Trace data reception by the application
Usage
The start-up sequence can be split into three steps:
Step 1: Advanced Trace initialization
Initialize the Advanced Trace with the selected interface handle by calling ADV_TRACE_Init(&io_handle).
Step 2: Reception initialization (optional)
Optionally enable reception by calling ADV_TRACE_StartRxProcess(RxCallback)
Step 3: Trace sending
Send trace data using ADV_TRACE_FSend(const char *fmt, ...) over the configured interface.