Main Content

XCP CAN Configuration

Configure XCP slave connection

  • Library:
  • Simulink Real-Time / XCP / CAN

    Vehicle Network Toolbox / XCP Communication / CAN

  • XCP CAN Configuration block


The XCP CAN Configuration block uses the parameters specified in the A2L file and the ASAP2 database to establish an XCP slave connection.

Before you acquire or stimulate data, specify the A2L file to use in your XCP CAN Configuration. Use one XCP CAN Configuration to configure one slave connection for data acquisition or stimulation. If you add XCP CAN Data Acquisition and XCP CAN Data Stimulation blocks, your model checks to see if there is a corresponding XCP CAN Configuration block. If there is no corresponding XCP CAN Configuration block, the model prompts you to add one.

The XCP CAN communication blocks support Simulink® accelerator mode and rapid accelerator mode. You can speed up the execution of Simulink models by using these modes. For more information about these simulation modes, see Design Your Model for Effective Acceleration (Simulink).

The XCP communication blocks support code generation with limited deployment capabilities. Code generation requires a C++ compiler that is compatible with the code generation target. For more information, see Supported and Compatible Compilers.


expand all

Specify a unique name for your XCP CAN session.

Programmatic Use


Click Browse to select an A2L file for your XCP CAN session.

Programmatic Use


Select this option if your slave requires a secure key to establish connection. Select a file that contains the seed/key definition to enable security.

Programmatic Use


If you select Enable seed/key security (EnableSecurity), this field is enabled. Click Browse to select the file that contains the seed and key security algorithm that unlocks an XCP slave module. This parameter is available in Windows Desktop Simulation for Vehicle Network Toolbox.

Programmatic Use


Select this option to display the status of the connection to the slave module. Selecting this option adds a new output port.

Programmatic Use

Introduced in R2013a