Call to autosar_make_rtw_hook ended with error

102 visualizaciones (últimos 30 días)
Samir Revelo
Samir Revelo el 15 de Ag. de 2019
Comentada: Melih el 16 de Ag. de 2022
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

Respuestas (1)

Urmila Rajpurohith
Urmila Rajpurohith el 22 de Feb. de 2021
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!

Categorías

Más información sobre AUTOSAR Blockset en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by