How do I get rid of MISRA 6.3 violations during static code analysis of code generated by Embedded Coder in MATLAB R2016b?
Show older comments
The code generated with Embedded Coder is not MISRA Compliant, and that the code analysis tool you use warns you about the typedefs that are not compliant with MISRA 6.3.
The MISRA 6.3 rule on the following documentation page suggests that 'typedefs' indicating size and signedness should be used in place of the basic types.
Run the following command to get the documentation page in MATLAB R2018b.
web(fullfile(docroot, 'codeprover/ug/misra-c-coding-rules.html'))
However, generated code contains "real_T", "uint_T", instead of "real64_T".
How do I get rid of MISRA 6.3 violations during static code analysis of code generated by Embedded Coder?
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!