Borrar filtros
Borrar filtros

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

6 visualizaciones (últimos 30 días)
Marco Montanaro
Marco Montanaro el 14 de Abr. de 2022
Respondida: Pramil el 17 de Sept. de 2024 a las 8:49
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?

Respuestas (1)

Pramil
Pramil el 17 de Sept. de 2024 a las 8:49
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

Categorías

Más información sobre Component-Based Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by