Limitations and Tips

The following limitations apply to AUTOSAR code generation.

Generate Code Only Check Box

If you do not select the Generate code only check box, the software produces an error message when you build the model. The message states that you can build an executable with the AUTOSAR system target file only if you:

  • Configure the model to create a software-in-the-loop (SIL) or processor-in-the-loop (PIL) block

  • Run the model in SIL or PIL simulation mode

  • Provide a custom template makefile

AUTOSAR Compiler Abstraction Macros (Classic Platform)

The software does not generate AUTOSAR compiler abstraction macros for data or functions arising from the following:

  • Model blocks

  • Stateflow®

  • MATLAB® Coder™

  • Shared utility functions

  • Custom storage classes

  • Local or temporary variables

API to Configure AUTOSAR Adaptive Class Interface

Code generation for AUTOSAR adaptive models does not support programmatic configuration of the class interface. You can instantiate a RTW.ModelCPPClass (Embedded Coder) object and attach it to an AUTOSAR adaptive model but the changes you make by using the class API are not reflected in the generated code.