pyocd_session_connect
Connect to a debug probe and open a session for embedded MCU debugging. Must be called before any target, register, or memory operations.
Instructions
Connect to a debug probe and open a debug session. Must be called before any target/register/memory operations. Only one session can be active at a time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| probe_id | No | Probe unique ID. Omit to use first available. | |
| frequency | No | SWD clock frequency in Hz (default 4MHz) | |
| target_type | Yes | Target MCU type (e.g. 'hc32f460xe', 'hc32f4a0pi') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |