As part of AUTOSAR adaptive code generation, AUTOSAR Blockset enables you to create an executable on your Linux host machine. You can run
the executable as a stand alone application. The AUTOSAR Adaptive Linux
Executable
toolchain provides AUTOSAR adaptive functional cluster
libraries for compiling the generated code. To create this executable, use the generated
CMakeLists.txt
file (requires CMake software).
CMakeLists.txt
File for AUTOSAR Adaptive ModelTo generate the file CMakeLists.txt
file from your AUTOSAR adaptive
model:
Open an AUTOSAR adaptive component model from which you want to generate the executable.
In the Configuration Parameters dialog box, under
Code Generation configuration parameters, set
System target file as
autosar_adaptive.tlc
.
In the AUTOSAR Code Generation configuration parameters, select the schema version.
In the Code Generation > Build process > Toolchain settings >
Toolchain configuration parameter field, select the
AUTOSAR Adaptive Linux Executable
toolchain.
ARA
functional cluster libraries provided by MathWorks® are added with the toolchain configuration displayed under
Toolchain details.
Build the model. The build generates C++
code,
ARXML
files, and the CMakeLists.txt
file.
Note
The AUTOSAR Adaptive Linux Executable
toolchain is
available only on Linux machines, on which you create and run the adaptive model
executables.
To create an AUTOSAR adaptive application executable from the generated
CMakeLists.txt
file:
Enter into the code generation folder of the model.
Create the executable for the AUTOSAR adaptive model by using these commands:
cmake -DCMAKE_BUILD_TYPE=Debug CMakeLists.txt; make all;
Run the generated executable on your Linux host machine. You can use calibration tools with this executable to calibrate AUTOSAR data.