How do I perform SIL testing on a model that uses routines from the AUTOSAR 4.0 code replacement library?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 3 Apr. 2024
Beantwortet: MathWorks Support Team
am 12 Apr. 2024
I would like to use the AUTOSAR 4.0 Code Replacement Library while generating code for my model.
However, the generated code includes an "Ifl.h" header file that is not included and thus the model fails to build for SIL testing.
How can I perform SIL testing on my model?
Akzeptierte Antwort
MathWorks Support Team
am 3 Apr. 2024
This is a common issue with any Code Replacement Library (CRL), since the point of a CRL is generally to insert target-specific C code in place of more generalized C code that runs on any target. For SIL to work, you need to have a host definition for any replaced functions.
Starting in MATLAB R2021b, host definitions for AUTOSAR 4.0 Code Replacement Library functions are included in MATLAB, allowing you to run SIL/PIL verification on models using the AUTOSAR 4.0 Code Replacement Library. Please see the following documentation for more information regarding this:
https://www.mathworks.com/help/releases/R2024a/autosar/ug/code-replacement-for-autosar.html#mw_3add85d2-5b28-49ec-a046-a7c7fdfbbf5d
Additionally, if you are using a Code Replacement Library which is based on the AUTOSAR 4.0 Code Replacement Library, please ensure that the name of the Code Replacement Library contains the string "AUTOSAR 4.0" to ensure the host library is configured properly.
In versions prior to MATLAB R2021b, you will need to define your own host definitions for these functions.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu AUTOSAR Calibration and Measurement Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!