reset_target
Resets an STM32 target for GDB debugging and optionally halts immediately; choose cold power-cycle for a true POR when a mapped hub channel exists.
Instructions
Resets the target device. Can optionally halt immediately after reset. strategy="cold" removes target power through a configured programmable USB hub before resetting, which is the only strategy that produces a true power-on reset (RCC_CSR POR flag, cleared .noinit, drained RAM); it fails rather than silently doing a warm reset when no hub channel is mapped. It needs no confirm argument -- asking for a cold reset by name IS the confirmation the hub guard wants -- and it stops the GDB session before the cut, then re-establishes it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| halt | Yes | If true, halts the CPU immediately after reset. | |
| command | No | Optional custom GDB monitor reset command. | |
| session | No | Optional debug-session name. Omit for the default target. | |
| strategy | No | Optional reset strategy: default, under_reset, software, or cold (hub power cycle). "software" issues soft_reset_halt, which resets through the debug unit WITHOUT asserting SYSRESETREQ -- so RCC_CSR does not record it and its sticky reset flags do not move; use "default" when the reset must be visible there, e.g. when proving a cold boot by watching a sticky flag disappear. "under_reset" is currently an alias of "default". The result's `note` says which of these applied to the call you actually made. |