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.
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). |