fatal data Type and bus signal errors after changing compiler target support package
5 views (last 30 days)
Show older comments
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
2 Comments
Answers (1)
Meet
on 19 Jun 2025
Edited: Meet
on 19 Jun 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!!
0 Comments
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!