Rte_Type.h in model reference
30 ビュー (過去 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!