What problem does it solve?
Setting up a Simulink model for production code generation involves dozens of interdependent configuration decisions — target framework, hardware device, optimization objective, MISRA compliance, and interface style — that are easy to get wrong and tedious to apply across a model reference hierarchy. This Skill applies the correct Embedded Coder (ERT) or AUTOSAR configuration atomically, propagating settings across referenced sub-models and reverting entirely on failure.
Core Features & Use Cases
- Target and hardware configuration: Selects ERT, ERT shared library, AUTOSAR Classic, or AUTOSAR Adaptive targets and maps hardware device strings (ARM Cortex-A, x86-64, etc.) to the correct word sizes and endianness.
- Optimization and compliance cascades: Applies speed, RAM, or debug optimization objectives and MISRA C/C++ compliance profiles, driving the underlying ConfigSet parameter changes automatically.
- Build orchestration and reporting: Supports configure-only, generate-code-only, and full build modes, returning JSON with configured models, generated artifacts, report path, and pending saves.
- Use Case: A controls engineer says "configure my model for production C code on ARM Cortex-M, optimized for RAM, MISRA compliant" — the Skill infers the ERT target, asks one batched question for anything missing, and applies the full configuration in a single call.
Quick Start
Ask the agent to configure your open Simulink model for embedded code generation, for example: "Configure my model for AUTOSAR code generation in C targeting ARM Cortex-A, optimized for speed."