cubemx1_ioc_build
Compiles target JSON offline into a canonical .ioc file that CubeMX loads directly, validating unsupported or malformed fields and reporting conflicts instead of ignoring them.
Instructions
Compile a target JSON offline into a canonical .ioc that CubeMX loads directly. Does not start CubeMX and runs no command sequence. The target describes: device, pins and signals, peripheral modes and parameters, clock target frequencies or explicit RCC parameters, interrupts, DMA, middleware, RTOS scalar parameters, project name / output directory / toolchain. Unsupported or malformed fields are reported as unsupported/unknown/conflict and are never silently ignored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "cubemx1_ioc_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Output .ioc path; defaults to project.output_dir/<project.name>.ioc from the target | |
| target | Yes | Target: a JSON object, or JSON text, or a .json file path. The top level must carry contract: cubemx1.ioc/1 or cubemx1.ioc/2 |