Check for blocks not recommended for MISRA C:2012
mathworks.misra.BlkSupport
Dependencies: Embedded Coder® and Simulink® Check™
Usage: C/C++ Code Generation and High-Integrity System Modeling
Guideline: hisl_0020: Blocks not recommended for MISRA C:2012 compliance
Description
Use this check to identify blocks that are not supported or recommended for MISRA C:2012 compliant code generation. Following the recommendations of this check increases the likelihood of generating MISRA C:2012 compliant code for embedded applications.
Recommended Actions and Results
Review the violations that are flagged by the check and the recommended action for fixing the issue. After applying the changes, save the model and rerun the check analysis.
Modeling Condition | Recommended Action |
---|---|
These lookup table blocks that use cubic spline interpolation or extrapolation methods were found in the model or subsystem:
| Consider other interpolation and extrapolation methods for the lookup table blocks. |
These deprecated lookup table blocks were found in the model or subsystem:
| Consider replacing the deprecated lookup table blocks. |
S-Function Builder blocks were found in the model or subsystem. | Consider replacing the S-Function Builder blocks with blocks recommended for production. |
From Workspace blocks were found in the model or subsystem. | Consider replacing the From Workspace blocks with blocks recommended for production. |
These blocks were found in the model or subsystem:
| Consider replacing these blocks with blocks recommended for production. |
Capabilities and Limitations
Runs on library models
Does not require model compilation
Supports edit-time checking
Exclude blocks and Stateflow® charts from this check if you have a Simulink Check license. See Model Advisor Exclusion Overview (Simulink Check).
Version History
Introduced in R2017b
See Also
Topics
- Check Your Model Using the Model Advisor
- Address Model Check Results
- Save and View Model Advisor Check Reports
- Improve Simulation Performance Using Performance Advisor
- Upgrade Models Using Upgrade Advisor
- Use Model Advisor Configuration Editor to Customize Model Advisor (Simulink Check)
- Exclude Blocks from Model Advisor Check Analysis (Simulink Check)
- Justify Model Advisor Violations from Check Analysis (Simulink Check)
- Check Model Compliance Using Edit-Time Checking (Simulink Check)
- Check Model Compliance by Using the Model Advisor (Simulink Check)
- Model Advisor Checks for MISRA C:2012 Coding Standards (Simulink Check)
- MISRA C
- MISRA C:2012 Compliance Considerations