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

3 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Meet
Meet il 19 Giu 2025
Modificato: Meet il 19 Giu 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!!

Categorie

Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by