| Contents | Index |

| On this page… |
|---|
Code Generation: AUTOSAR Code Generation Options Tab Overview Generate XML file from schema version Use AUTOSAR compiler abstraction macros |
Parameters for controlling AUTOSAR code generation options.
This pane appears only if you specify the autosar.tlc system target file.
Click the Configure AUTOSAR Interface button to open a dialog box where you can configure all other AUTOSAR options.
Select the AUTOSAR schema version to use when generating XML files.
Default: 3.1
Use schema version 3.1
Use schema version 3.0
Use schema version 2.1
Use schema version 2.0
Click the Configure AUTOSAR Interface button to open a dialog box where you can configure all other AUTOSAR options.
| Parameter: AutosarSchemaVersion |
| Type: string |
| Value: '3.1' | '3.0' | '2.1' | '2.0' |
| Default: '3.1' |
Generating Code for AUTOSAR Software Components
Specify maximum length for SHORT-NAME XML elements
Default: 32
The AUTOSAR standard specifies that the length of SHORT-NAME XML elements cannot be greater than 32 characters. This option allows you to specify a maximum length of up to 128 characters.
| Parameter: AutosarMaxShortNameLength |
| Type: integer |
| Value: any integer less or equal to 128 |
| Default: 32 |
Specifying Maximum SHORT-NAME Length
Specify use of AUTOSAR macros to abstract compiler directives
Default: Off
Software generates code with C macros that are abstracted compiler directives (near/far memory calls)
Software generates code that does not contain AUTOSAR compiler abstraction macros.
| Parameter: AutosarCompilerAbstraction |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
Configuring AUTOSAR Compiler Abstraction Macros
Allow root-level matrix I/O
Default: Off
Software supports matrix I/O at the root-level by generating code that implements matrices as one-dimensional arrays.
Software does not allow matrix I/O at the root-level. If you try to build a model that has matrix I/O at the root-level, the software produces an error.
| Parameter: AutosarMatrixIOAsArray |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
Opens the Model Interface dialog box where you can configure all other AUTOSAR options.
This parameter is disabled if you are using Configuration Set Reference.
| Parameter:autosar_gui_launch |
| Type: String |
| Value: subsystemName |
| Default: No default |
![]() | Code Generation Pane: Memory Sections | Code Generation Pane: IDE Link | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |