Get Started with Embedded Coder
Embedded Coder® generates readable, compact, and fast C and C++ code for embedded processors used in mass production. It extends MATLAB® Coder™ and Simulink® Coder with advanced optimizations for precise control of the generated functions, files, and data. These optimizations improve code efficiency and facilitate integration with legacy code, data types, and calibration parameters. You can incorporate a third-party development tool to build an executable for turnkey deployment on your embedded system or rapid prototyping board.
Embedded Coder offers built-in support for AUTOSAR, MISRA C®, and ASAP2 software standards. It also provides traceability reports, code documentation, and automated software verification to support DO178, IEC 61508, and ISO 26262 software development. Embedded Coder code is portable, and can be compiled and executed on any processor. In addition, it offers support packages with advanced optimizations and device drivers for specific hardware.
Code Generation from Simulink Model Workflow
Generate, test, and deploy C code optimized for an embedded system from a model that represents a discrete-time control system.
Code Generation from MATLAB Code Workflow
if-elseif-else statements in C/C++ code
generated from MATLAB code.
Include MATLAB source code as comments in the generated code. Include function help text and function signature in function banner.
About Code Generation for Embedded Systems
- Code Generation by Using Embedded Coder
MathWorks® code generation technology produces C or C++ code and executable programs for algorithms.
- Validation and Verification for System Development
Validate and verify steps in the system development process, such as requirements analysis, system specification, code generation, and software and system integration.
- Target Environments and Applications
Choose a system target file for generating, building, and executing code for target environments, such as development computers, real-time simulators, and embedded processors.
- Generate Code by Using the Quick Start Tool
Prepare a model for quickly generating readable, efficient code.
- Embedded Coder Capabilities for Code Generation from MATLAB Code
The Embedded Coder product extends the MATLAB Coder product with capabilities that you can use for embedded software development.
How to Generate Production Code in 5 Minutes
Quickly generate code based on your high-level project requirements.
Embedded Coder Data, Function, and File Customization
Assign default definitions, storage classes, and memory sections to classes of data such as inputs, outputs, and parameters.
Dynamic Code Verification and Analysis: SIL, PIL, and External Mode
Verify, tune, log, and calibrate generated code by using software-in-the-loop, processor-in-the-loop, and external mode techniques.