Running Code Generation Advisor's checks crashes Simulink models (Matlab r2021b)

I have recently encountered errors while running the Code Generation Advisor tool in Simulink. More specifically, all options that "trigger extensive analysis" crash the system during the optimization step. This happens regardless of the Simulink model being tested. More specifically, the following checks crash the system:
  • "Check for bitwise operations on signed integers"
  • "Check for recursive function calls"
  • "Check for equality or inequality operations on floating point values"
  • "Check Integer word length" crashes Simulink
All other checks run correctly, or just produce a warning when a model element is not up to MISRA specs. So far, the only warning I'm getting on my main model is an issue with an Integrator and a Transfer function, as well as the use of continuous time while the advisor suggests turning it off. Is there any underlying issue that might be causing this?

Answers (1)

I faced a similar issue in MATLAB R2021b and upon doing some research online though the crash logs, I found the following EBR:
The conditions written were matching in my case. Upgrading to MATLAB R2022a resolved this issue for me.
If upgrading does not resolve this issue for you, I would recommend reaching out to MathWorks Support Team: https://www.mathworks.com/support/contact_us.html
Hope it helps

Categories

Find more on Verification, Validation, and Test in Help Center and File Exchange

Asked:

on 14 Apr 2022

Answered:

on 17 Sep 2024

Community Treasure Hunt

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

Start Hunting!