cubemx_generate
Generate HAL code from an STM32CubeMX .ioc file. Optionally set a target directory to avoid overwriting your existing project.
Instructions
加载 .ioc 并执行 project generate 生成 HAL 代码。
参数: ioc: 工程 .ioc 文件绝对路径 project_dir: 生成目标目录;留空则在 .ioc 所在目录生成。 强烈建议指向副本/测试目录,避免覆盖现有工程。
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": {
"ioc": "<ioc>"
},
"name": "cubemx_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ioc | Yes | ||
| project_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |