matlab-deploy-embedded-code
Deploy MATLAB-generated code to embedded hardware using Embedded Coder. Use when configuring code generation for microcontrollers (STM32, Raspberry Pi, ARM Cortex), setting up PIL/SIL verification, disabling dynamic memory allocation, or configuring hardware-specific code generation settings. Covers ERT-based configurations, processor-in-the-loop testing, memory constraints, and the MEX→SIL→PIL verification progression.
npx skills add matlab/matlab-agentic-toolkit --skill matlab-deploy-embedded-code --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Deploy Embedded Code Configure MATLAB Coder with Embedded Coder for production-quality code generation targeting embedded hardware, and verify correctness with processor-in-the-loop (PIL) testing. ## When to Use - Generating C/C++ code for a microcontroller or embedded Linux board - Setting up PIL or SIL verification for generated code - Configuring code generation with no dynamic memory allocation - Deploying deep learning models to resource-constrained hardware - Selecting a hardware target board (STM32, Raspberry Pi) ## When NOT to Use - Generating MEX or desktop libraries — use standard `codegen` workflows - Simulink-based deployment — use Simulink Coder / Embedded Coder workflows directly - GPU code generation (CUDA) — use GPU Coder ## Workflow ### 1. Create an ERT-Based Configuration ```matlab cfg = coder.config("lib", "ecoder", true); ``` The `"ecoder", true` flag creates an ERT-based (Embedded Real-Time) configuration that generates production-quality code with no OS dependencies. ### 2. Select Target Hardware With `coder.hardware`: ```matlab cfg.Hardware = coder.hardware("STM32F746G-Discovery"); ``` Without the support package, configure hardware manually: ```matlab cfg.
- When to Use
- When NOT to Use
- Workflow
- 1. Create an ERT-Based Configuration
- 2. Select Target Hardware
- 3. Configure Memory for Bare-Metal Targets
- 4. Configure Performance (SIMD and OpenMP)
- 5. Set Up PIL Verification
- 6. Generate Code
- 7. Verify with the MEX → SIL → PIL Progression
- Key Properties
- Common Mistakes
- Conventions
- References
What does the matlab-deploy-embedded-code skill do?
Deploy MATLAB-generated code to embedded hardware using Embedded Coder. Use when configuring code generation for microcontrollers (STM32, Raspberry Pi, ARM Cortex), setting up PIL/SIL verification, disabling dynamic memory allocation, or configuring hardware-specific code generation settings. Covers ERT-based configurations, processor-in-the-loop testing, memory constraints, and the MEX→SIL→PIL verification progression.
How do I install it?
Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-deploy-embedded-code --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
