fatal data Type and bus signal errors after changing compiler target support package

5 vues (au cours des 30 derniers jours)
Vitali
Vitali le 5 Juin 2025
Modifié(e) : Meet le 19 Juin 2025
We have a large vehicle control modell in simulink that is compiled to C-code with the embedded coder.
We recently switched the Control Unit that the code runs on. The new control unit comes with a new software package and a new compiler package.
When we tried to compile the model for the new Hardware we started to get huge amounts of Errors. The new compiler does not accept doubles which we use in most of our model.
This can be resolved with type conversions but the Model is to large to change everything by hand.
Furthermore there are other datatype errors wich effect the busses. It cant find nested busses connected to other subsystems.
Is this common when changing compilers?
are there any ways to change large amounts of data types defined in the Model?
Do you have any other tips for us going forward?
All the errors are resolvable but it takes a lot of manual labor.
Thanks

Réponses (1)

Meet
Meet le 19 Juin 2025
Modifié(e) : Meet le 19 Juin 2025
Hi Vitali,
To prevent Simulink from defaulting to "double" for signals with unspecified data types you could following this MathWorks documentation link: https://www.mathworks.com/help//releases/R2022b/ecoder/ug/specify-single-precision.html
For large models, manually changing data types can be time consuming. You could consider using Model Advisor to identify and fix data type issues systematically: https://www.mathworks.com/help/releases/R2022b/simulink/ug/validate-a-floating-point-embedded-model.html
Hope this helps!!

Catégories

En savoir plus sur Deployment, Integration, and Supported Hardware dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by