- Create a "Simulink.Parameter" in base workspace and set the storage class to "ExportedGlobal" to make it a tunable parameter.
- Mark any signals you want to measure as test points.
- In the model configuration, set up the XCP server (for example, choose "XCP On TCP/IP" and specify the IP address and port).
- Use the "Generate Calibration Files" option to create the ASAP2 (A2L) file.
- Build and deploy the application to your Linux target using the recommended workflow (such as Linux Runtime Manager).
- You can then connect with calibration tools that support XCP and A2L for measurement and tuning.
XCP Calibration for Autosar Adaptive Linux Executables
12 views (last 30 days)
Show older comments
Hello,
Is it possible - and if so, how - to calibrate parameters via XCP for applications built with the AUTOSAR Adaptive Linux Executable Toolchain?
The calibration procedure is described here:
On the other hand, https://de.mathworks.com/help/autosar/ug/export-asap2-file-for-data-calibration.html states:
“The XCP and ASAP2 capabilities are defined outside the Adaptive Platform (AP) specification, which as of Release 19‑11 does not address data calibration.”
In my AUTOSAR Adaptive model, I cannot configure a parameter’s storage class to ExportedGlobal.
Thank you very much for your reply!
0 Comments
Answers (1)
Ronit
on 12 Aug 2025 at 6:42
You are correct that the AUTOSAR Adaptive Platform specification (as of Release 19-11) does not cover XCP or ASAP2 (A2L) based calibration and measurement. This means that, according to the standard, there is no defined method for run-time parameter calibration in Adaptive applications.
However, support for XCP server communication and ASAP2 file generation is available for AUTOSAR Adaptive applications created with certain tools. This enables you to perform run-time calibration and measurement on Linux executables generated from Simulink models, even though it is not part of the official AUTOSAR Adaptive specification.
Refer to the following steps for more details:
I hope the above steps help you resolve your query!
0 Comments
See Also
Categories
Find more on AUTOSAR Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!