stm32_start_swv_trace
Connect to STM32 Serial Wire Viewer (SWO/ITM) and stream printf log outputs, with configurable ITM port and clock frequency.
Instructions
Connect to Serial Wire Viewer (SWO/ITM) and stream printf log outputs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stm32_start_swv_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_file | No | Optional log file path to record SWO output | |
| port_number | No | ITM port number (0-31 or 'all') | 0 |
| clock_freq_mhz | No | MCU System Clock frequency in MHz (e.g. 16, 84, 168, 480) |