Call to autosar_make_rtw_hook ended with error
41 次查看(过去 30 天)
显示 更早的评论
Hello,
I´m trying to compile my simulink model which is configured with AUTOSAR tlc.
I defined some time ago a Simulink.AliasType wheel_velocity_t, which I haven´t used yet. This numeric type has following characteristics:
fixdt(1,16,0.01,0)
Currently I want to use this numeric type for all of the computations inside of my model to be also fix point signals. While attempting to generate code for the model I got this error:
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error: 'wheel_velocity_t' is not a valid name for the type in package '/SysMdl/Erv/Datatypes/ApplDataTypes'. Another element with the same name already exists in that package. Please rename the type or change the package.
Nevertheless, I cannot access to the content of mentioned folder ApplDataTypes to delete the already exisiting types.
I need to solve this issue soon since I´m not able to generate any code.
I look forward to getting soon support from you.
Many thanks in advance for your reply.
Regards,
Samir Revelo
0 个评论
回答(1 个)
Urmila Rajpurohith
2021-2-22
Hi
It might be because XML Options are configured such that Application Data Types and Data Types are pointing to the same location. Since they are pointed to the same location, all generated implementation data types and application data types are assigned the same fully qualified path and that is forbidden in Simulink.
To avoid this you can try making the package names for Application Data Types and Data Types different.
Hope this helps!
另请参阅
类别
在 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!