Error in AUTOSAR code generation in R2022a

9 ビュー (過去 30 日間)
Anuradha
Anuradha 2023 年 6 月 9 日
回答済み: Kautuk Raj 2024 年 9 月 12 日
Hi,
I am trying to generate AUTOSAR code for a SWC and getting the following error:
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error: 0 to 64 bit fixed/integer types supported only The build process will terminate as a result.
Caused by:
  • 0 to 64 bit fixed/integer types supported only
I tried running rtwbuild and got following error in command window:
Error using coder.internal.callMakeHook
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error:
0 to 64 bit fixed/integer types supported only
The build process will terminate as a result.
Error in coder.internal.ModelBuilder>locNewCodePostCodeGen (line 1953)
coder.internal.callMakeHook('after_tlc',lMakeOptions, lBuildOptsAfterTlc, ...
Error in coder.internal.ModelBuilder>i_buildProcedure (line 887)
locNewCodePostCodeGen...
Error in coder.internal.ModelBuilder.make_rtw (line 119)
[buildResult, mainObjFolder] = i_buildProcedure...
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
Error in sl_feval
Error in slbuild
Error in slbuild
Error in rtwbuild - Show complete stack trace
Caused by:
Error using assert
0 to 64 bit fixed/integer types supported only - Show complete stack trace
Displaying stack trace:
Error using coder.internal.callMakeHook
• In coder.internal.callMakeHook
• In coder.internal.ModelBuilder>locNewCodePostCodeGen (line 1953)
• In coder.internal.ModelBuilder>i_buildProcedure (line 887)
• In coder.internal.ModelBuilder>ModelBuilder.make_rtw (line 119)
• In build_target
• In build_target
• In build_standalone_rtw_target
• In slbuild_private
• In slbuild_private
• In sl_feval
• In slbuild
• In slbuild
• In rtwbuild

回答 (1 件)

Kautuk Raj
Kautuk Raj 2024 年 9 月 12 日
It seems you are encountering a data type-related error while generating AUTOSAR code for your Software Component (SWC) in MATLAB R2022a.
In one of my models, I faced a similar issue with the error message "0 to 64 bit fixed/integer types supported only" in the R2022a version.
Updating to MATLAB R2022b or a later version resolved the issue for me.
I recommend trying the same update to see if it resolves your problem as well.

カテゴリ

Help Center および File ExchangeAUTOSAR Blockset についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by