Invalid Autosar shortname error

I get the following error when building my model:
The call to autosar_make_rtw_hook, during the entry hook generated the following error:
PIM_E2ENonAutosarIN_AsilAB_ZB1_100ms_E2ENonAutosarIN__ej3d1q2te: must be a valid AUTOSAR shortname. The shortname must not be more than 128 characters, must begin with a letter, and can contain only letters, numbers, and the underscore character. For AUTOSAR R4.0 or later double underscores are not allowed. For example, this_is_valid123
One of the runnables of my SW Component is called E2ENonAutosarIN_AsilAB_ZB1_100ms. I understand that the error is caused due to the double underscore in the shortname after the addition of "_ej3d1q2te". Is there a way to get rid of that error? Tried renaming the runnable by removing any underscores in the name. Didn't work out. Is there any other change I can try in order to get rid of that error?
Thank you

回答 (1 件)

SACHIN KHANDELWAL
SACHIN KHANDELWAL 2024 年 4 月 19 日

0 投票

Hi Vasileios,
I understand that you are facing an issue when building the AUTOSAR model.
Based on the error message, the issue seems to be caused by the use of double underscores ('__').
I've managed to replicate the problem, and after removing the double underscores, I was able to successfully build the model.
Hoping it will help you.
Thanks!

カテゴリ

ヘルプ センター および File ExchangeAUTOSAR Blockset についてさらに検索

製品

リリース

R2020a

質問済み:

2021 年 6 月 11 日

回答済み:

2024 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by