Skills

Simulink Configure Model For Code Generation

Configure Simulink models for Embedded Coder (ERT), Simulink Coder (GRT...

Install

npx skills add matlab/simulink-agentic-toolkit --skill simulink-configure-model-for-code-generation -g -a claude-code -y
Category
Engineering
Updated
6d ago
License
See repository
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Configure Simulink models for Embedded Coder (ERT), Simulink Coder (GRT rapid-prototyping), or AUTOSAR code generation. Use when the user asks to generate embedded C or C++ code, run a full build of a model, produce a code generation report, configure a model for production/ECU deployment or rapid-prototyping code, target ARM or x86 hardware, apply a MISRA C/C++ code-generation profile (ERT/AUTOSAR only, not GRT), or set up GRT, ERT, AUTOSAR, or shared-library targets. Handles target selection, hardware mapping, model hierarchy propagation, and optional support-flag introspection. Do NOT use for GRT shared-library variants (grt_malloc.tlc), DDS, or ROS. Do NOT use for Simulink Real-Time/Speedgoat targets (simulink-configure-real-time-model), Classic AUTOSAR component mapping/ports/runnables/ARXML authoring (simulink-author-classic-autosar-swc), auditing a model against MISRA guidelines (checking-model-compliance), or iterative optimization of existing generated code (simulink-optimizing-embedded-code).

Configure a Simulink Model for Code Generation

Configure Simulink models for Embedded Coder (ERT), Simulink Coder (GRT rapid-prototyping), or AUTOSAR code generation using the configure_for_codegen function.

When to Use

  • User asks to configure a model for code generation, production deployment, Embedded Coder, or Simulink Coder rapid prototyping
  • User mentions GRT, ERT, AUTOSAR, ARM, embedded target, production code, or rapid-prototyping code
  • User asks for a MISRA C or MISRA C++ code-generation profile (ERT or AUTOSAR only, MISRA is not supported on GRT)
  • User describes a deployment target in domain language ("deploy to ECU", "minimize flash", "rapid prototyping on a desktop target")

When NOT to Use

Read the whole SKILL.md on GitHub

More in Engineering