Error in AUTOSAR code generation in R2022a

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

Antworten (1)

Kautuk Raj
Kautuk Raj am 12 Sep. 2024

0 Stimmen

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.

Kategorien

Produkte

Version

R2022a

Gefragt:

am 9 Jun. 2023

Beantwortet:

am 12 Sep. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by