1.7 KiB
1.7 KiB
STM32CubeMX IOC Reader
Use this skill when
- The user asks to read, analyze, summarize, or validate an STM32CubeMX
.iocfile. - The user wants pin mapping, clock config, peripheral setup, middleware settings, or project metadata from
.ioc. - The user wants a machine-readable export (JSON) of
.ioccontent.
Do not use this skill when
- The request is about generated C code (
main.c,stm32xx_hal_msp.c) and not.iocitself. - The file is not an STM32CubeMX
.iocfile.
What this skill does
- Parses
.iockey-value entries. - Groups configuration by domain: MCU, pins, RCC/clock, peripherals, middleware, and project manager.
- Produces readable summaries for fast review.
- Optionally exports structured JSON for tooling.
Workflow
- Confirm the target
.iocpath. - Run parser script:
python scripts/parse_ioc.py --ioc <path/to/project.ioc>
- For JSON output:
python scripts/parse_ioc.py --ioc <path/to/project.ioc> --json
- For saved JSON file:
python scripts/parse_ioc.py --ioc <path/to/project.ioc> --json --out parsed_ioc.json
Response style guidelines
- Start with a concise project overview (MCU, board, toolchain, project name).
- Then list enabled peripherals and notable pin assignments.
- Then call out clock source and important RCC settings.
- Mention anomalies (empty values, duplicate keys, unknown domains).
Notes about .ioc format
.iocis an INI-like key-value format (not strict XML).- Typical key prefixes:
Mcu.for target MCU/package/familyPAx/PBx... for pin assignment and signal labelsRCC.for clocks<PERIPH>.(for exampleUSART1.,I2C1.,TIM3.) for peripheral settingsProjectManager.for generated project metadata