MISRA warnings when building code generated for MISRA Compliance

1 回表示 (過去 30 日間)
John Fiaschetti
John Fiaschetti 2021 年 12 月 3 日
コメント済み: John Fiaschetti 2024 年 2 月 19 日
Hi all,
I am generating code from Embedded Coder using the objectives 'MISRA C 2012 guidelines' and 'Safety precaution'. When I build my code, I am still getting MISRA warnings. I was expecting not to have any warnings if one of my objectives was compliance. Is there something else I need to do to ensure compliance?
Thanks!

採用された回答

Venkat Siddarth Reddy
Venkat Siddarth Reddy 2024 年 2 月 19 日
Hi John,
When adding the 'MISRA C 2012 guidelines' in code generation objectives, it doesn't mean that the generated code is fully compliant with the MISRA guidelines. This feature is designed to help facilitate compliance in generated code, but it is not a failsafe that ensures the generated code will be free of all MISRA warnings or violations.
To learn more about objectives in code generation please refer to the following documentation:
I hope it helps!
  1 件のコメント
John Fiaschetti
John Fiaschetti 2024 年 2 月 19 日
Hello Venkat,
I understand. I guess I overestimated the capabilities.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by