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

6 次查看(过去 30 天)
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

回答(1 个)

Meet
Meet 2025-6-19
编辑:Meet 2025-6-19
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!!

类别

Help CenterFile Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by