run_for_duration
Runs an STM32 target freely for a set wall-clock duration, then halts it and returns final context plus optional expression captures for counters, telemetry, polling, and timing diagnostics.
Instructions
Runs the target freely for a wall-clock duration, halts it, and returns one structured report with final frame/context and optional expression captures. Useful for counters, telemetry buffers, polling loops, and timing-sensitive bus diagnostics without breakpoint perturbation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"duration_sec": "<duration_sec>"
},
"name": "run_for_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| then | No | Action after duration (default halt). | |
| sample | No | Best-effort low-rate debugger polling while running; does not halt the target. | |
| capture | No | ||
| session | No | Optional debug-session name. Omit for the default target. | |
| duration_sec | Yes | Seconds to let the target run freely. | |
| resume_after | No | Resume execution after capture (default false). |