configure
Configure the debug session by setting interface, target, transport, SVD, and ELF files. Only non-empty arguments are applied.
Instructions
Set the chip/project settings for this session. Only non-empty arguments are applied; the rest keep their current values.
interface_cfg : debug-probe OpenOCD config, e.g. 'interface/stlink.cfg' or 'interface/jlink.cfg' target_cfg : chip OpenOCD config, e.g. 'target/stm32g0x.cfg' transport : 'swd' or 'jtag' — set 'swd' for J-Link on Cortex-M (else it picks JTAG) svd_file : path to the chip's CMSIS-SVD file (peripheral registers) elf_file : path to the firmware .elf (variables by name)
Alternatively, put these in an 'openocd-mcp.json' file in your project so they load automatically. Loading a new SVD/ELF takes effect on next use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elf_file | No | ||
| svd_file | No | ||
| transport | No | ||
| target_cfg | No | ||
| interface_cfg | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |