Rte_Type.h in model reference
25 次查看(过去 30 天)
显示 更早的评论
I have a autosar classic component that has a model reference is using datatypes defined in the component. Code generation is successfull but, I can not get the metrics report.
Error messages as follows
In component code generation report, section static code metrics: (3 Lines error)
component.h line 65 identifier "XYZ" is undefined, XYZ is a enum class
component.c line 32 identifier "ABC" is undefined, ABC is a enum value
model reference.h Line 34 expected a declaration
In model reference code generation report, section static code metrics: (1 Line error)
model reference.h Line 26 cannot open source file "Rte_Type.h"
0 个评论
回答(1 个)
Venkat Siddarth Reddy
2023-12-14
I understand that you are trying to generate metrics report for an AUTOSAR classic component with a model reference which uses datatypes defined in it.
From the context provided and the error message,it seems that the generated code includes a header file that is not generated by the model hierachy or there are few external dependencies for the header file.
In this case, you wont be able to generate the metrics report.
This is a limitation, please refer to the below documentation:
The workaround is to copy the missing file(i.e Rte_Type.h) to the working or build folder of the model,and you should be able to generate the metrics report.
I hope this resolves your query,
Regards
Venkat Siddarth V.
2 个评论
Simon
2024-5-21
编辑:Simon
2024-5-21
I have the same issue, that some bus data types are missed/skipped during the code generation and therefore we can not integrate any SWC which uses referenced models. Even more critical it is when we want to integrate a protected model, here we do not know which data types are used inside the protected model.
Is there any model settings for Code Generation which needs to be set so that all data type definitoins in referenced models are also generated during the build process?
Matlab Version that I am using: R2024a Update 3
Best regards,
Simon
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AUTOSAR Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!