Compiler Selection

Supported Compilers

OpenECU works with the following compilers:

Compiler

Compatible ECUs

Wind River Diab C compiler v5.5.1.0

M110, M220, M250, M460, M461, G850

Wind River Diab C compiler v5.8.0.0

M110, M220, M250, M460, M461

Wind River Diab C compiler v5.9.0.0

M110, M220, M250, M460, M461, M670

Wind River Diab C compiler v5.9.4.8 with patch*

M560, M580

GCC v4.7.3

M110, M220, M250, M460, M461

Notes:

Fatal Error (dcc:1635): License error: Unknown LMAPI error

If you encounter the following error while building a model in sim-api or while searching for compiler via "oe_check_compiler" command. The solution is detailed below:

1.jpg

Workaround for the above error is to add an additional environmental variable named "WRSD_License_File" with value as shown below.

2.jpg

This needs to be added along with other variable as mentioned in the sim-api user guide. Section 2.5.12 Windriver C compiler v5.9.4.8:

3.JPG

Once these two variables are added. Restart your PC and rebuild the model.

Matlab cannot find my installed compiler (I used mex -setup)

This is an inquiry we commonly receive. The short answer is: do not use mex -setup.

mex -setup is used to set the PC compiler that is used for compiling S-functions. The embedded software compiler is selected in the Code Generation tab of the Simulink configuration dialog.

To select your embedded compiler, go to your Simulink model and select the Simulation menu from the menu bar, then click Model Configuration Parameters (or Simulation Parameters in older versions of Simulink).

Next, select Code Generation (Real-Time Workshop in older versions of Simulink) from the selection pane on the left side of the dialog box to expand the options. Next, select OpenECU compiler selection. You can then select from the installed compilers using the drop-down menu. See image below for details.

compiler_selection.jpg

If you do not see Code Generation (Real-Time Workshop in older versions of Simulink) in the selection pane on the left side of the Simulink conifguration dialog, then your Simulink installation is not licensed for Simulink Coder (or Real-Time Workshop). Contact the Mathworks for help with Simulink licensing and installation.

If you do not see your installed compiler in the drop-down, you may need to add an environment variable for your compiler.

      Copyright © 2016 Pi Innovo, All rights reserved