Skip to Main Content Skip to Search
Product Documentation

Code Generation Pane: AUTOSAR Code Generation Options

Code Generation: AUTOSAR Code Generation Options Tab Overview

Parameters for controlling AUTOSAR code generation options.

Configuration

This pane appears only if you specify the autosar.tlc system target file.

Tip

Click the Configure AUTOSAR Interface button to open a dialog box where you can configure all other AUTOSAR options.

See Also

Generate XML file from schema version

Select the AUTOSAR schema version to use when generating XML files.

Settings

Default: 3.1

3.1

Use schema version 3.1

3.0

Use schema version 3.0

2.1

Use schema version 2.1

2.0

Use schema version 2.0

Tip

Click the Configure AUTOSAR Interface button to open a dialog box where you can configure all other AUTOSAR options.

Command-Line Information

Parameter: AutosarSchemaVersion
Type: string
Value: '3.1' | '3.0' | '2.1' | '2.0'
Default: '3.1'

See Also

Generating Code for AUTOSAR Software Components

Maximum SHORT-NAME length

Specify maximum length for SHORT-NAME XML elements

Settings

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.

Command-Line Information

Parameter: AutosarMaxShortNameLength
Type: integer
Value: any integer less or equal to 128
Default: 32

See Also

Specifying Maximum SHORT-NAME Length

Use AUTOSAR compiler abstraction macros

Specify use of AUTOSAR macros to abstract compiler directives

Settings

Default: Off

On

Software generates code with C macros that are abstracted compiler directives (near/far memory calls)

Off

Software generates code that does not contain AUTOSAR compiler abstraction macros.

Command-Line Information

Parameter: AutosarCompilerAbstraction
Type: string
Value: 'on' | 'off'
Default: 'off'

See Also

Configuring AUTOSAR Compiler Abstraction Macros

Support root-level matrix I/O using one-dimensional arrays

Allow root-level matrix I/O

Settings

Default: Off

On

Software supports matrix I/O at the root-level by generating code that implements matrices as one-dimensional arrays.

Off

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.

Command-Line Information

Parameter: AutosarMatrixIOAsArray
Type: string
Value: 'on' | 'off'
Default: 'off'

See Also

Root-Level Matrix I/O

Configure AUTOSAR Interface

Opens the Model Interface dialog box where you can configure all other AUTOSAR options.

Dependencies

This parameter is disabled if you are using Configuration Set Reference.

Command-Line Information

Parameter:autosar_gui_launch
Type: String
Value: subsystemName
Default: No default

See Also

  


Related Products & Applications

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