reset_target
Restart connected firmware on an embedded board through the debugger, keeping flash intact. Requires allow_reset; stop any open debug session first.
Instructions
Reset the board through the in-circuit debugger or programmer: the firmware restarts, flash is kept. Replaces st-util. Needs allow_reset (else permission_denied). Refused with resource_busy while a debug session is open: debug_stop_session first. To check the board without a reset use probe_target. Failures: reset_failed (reset not confirmed), timeout (one command over debugger.timeout_s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default 'run' (core executes); 'halt' stops the core at reset; 'init' also runs the reset-init script (clocks, wait states, watchdog), OpenOCD-only, else not_supported. | run |