Main Content

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 ConditionRecommended 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:

  • Lookup Table

  • Lookup Table (2-D)

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