Create ASAP2 file with IF_DATA XCP block that describes the Simulink Coder XCP slave configuration
coder.xcp.a2l.addCoderXCPInfo
creates the ASAP2 file
in the code
generation folder. The ASAP2 file contains the modelName
_CoderXCPSlave.a2lIF_DATA XCP
block that
describes the Simulink®
Coder™ XCP slave 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 by
ExtModeMexArgs
.
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 slave.
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 slave information for myModel
)myModel
.
coder.xcp.a2l.addCoderXCPInfo(
creates the ASAP2 file using one or more name-value pair arguments.buildFolder
, Name,Value
)
For a workflow description, see Calibrate Generated Code and Monitor Signals Through XCP and Third-Party Tools.