generate_code
Generates STM32CubeMX application code into a specified directory, excluding drivers and IDE files, with optional layout control for all-in-main or one-file-per-IP output.
Instructions
Generate only the CubeMX application code into a directory (generate code <dir>, no drivers/IDE files). mode may force the all-in-main or one-file-per-IP layout first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Optional layout override | |
| output_dir | No | Destination directory | |
| project_id | Yes | Project id |