pyocd_project_init
Create a .pyocd-debug.json configuration file for pyOCD debug sessions, storing target type, firmware, ELF, SVD, and probe paths with automatic relative conversion to enable reliable debugging.
Instructions
Create .pyocd-debug.json config file in a project directory. Stores target type, firmware, ELF, SVD, and probe paths so that debug sessions can be started reliably without manual file discovery. Paths under the project directory are automatically converted to relative paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elf | No | Path to ELF/AXF file for symbol resolution | |
| svd | No | Path to SVD file for peripheral register access | |
| probe | No | Probe unique ID (partial match supported) | |
| target | Yes | Target MCU type (e.g. 'hc32f4a0xi', 'stm32f407xe') | |
| firmware | No | Path to firmware file (.hex/.bin) | |
| project_dir | Yes | Absolute path to the project root directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |