coder.xcp.a2l.addCoderXCPInfo
Create ASAP2 file with IF_DATA XCP block that describes the Simulink Coder XCP server configuration
coder.xcp.a2l.addCoderXCPInfo
function is no longer available to use.
You can coder.asap2.export
function
instead.
Set GenerateXCPInfo
to true
while calling
coder.asap2.export
function to export the ASAP2 file by adding IF_DATA
and A2ML sections. Set MapFile
to <name of the symbol
file>
to perform address replacement.
Embedded Coder® is required to create an ASAP2 file containing XCP server information.
Syntax
Description
coder.xcp.a2l.addCoderXCPInfo
creates the ASAP2 file
in the code generation folder. The ASAP2 file contains the modelName
_CoderXCPServer.a2lIF_DATA XCP
block that describes the Simulink®
Coder™ XCP server configuration.
The function:
Runs
rtw.asap2MergeMdlRefs
to merge the ASAP2 files generated from referenced models into a single ASAP2 file.Runs
rtw.asap2SetAddress
to replace placeholder address strings with addresses extracted from the debug symbol file specified byExtModeMexArgs
.In the ASAP2 file, creates:
An
A2ML
block for the ASAM MCD-1 XCP communication channel.An
IF_DATA XCP
block that describes configuration of Simulink Coder XCP server.
coder.xcp.a2l.addCoderXCPInfo(
creates the ASAP2 file for the code generated in buildFolder
)buildFolder
.
coder.xcp.a2l.addCoderXCPInfo(
creates
the ASAP2 file containing the Simulink
Coder XCP server information for myModel
)myModel
.
coder.xcp.a2l.addCoderXCPInfo(
creates the ASAP2 file using one or more name-value pair arguments.buildFolder
, Name,Value
)
Examples
Tune Parameters and Monitor Signals Through XCP and Third-Party Tools
For a workflow description, see Calibrate Generated Code and Monitor Signals.
Input Arguments
Version History
Introduced in R2019b