Error -301007 When Making Addition of the XCPplus Structure in A2L Files

Updated Oct 12, 2021

Reported In

Software

  • ECU Measurement and Calibration Toolkit
  • LabVIEW

Issue Details

We are making the addition of the XCPplus structure in A2L files. I'm using the ECUMC Toolkit, which should have support for this. However, when I try to Connect, I get error -301007

Error -301007 ocurred at File.vi
Possible reason(s):
ECU toolkit: (Hex 0xFFFB6831) The communication parameters for the ECU are not properly initialized. 
The parameters are probably not defined in the database file. 
Solution: Set the communication parameters for the ECU using mcSetProperty before connecting to the ECU

Solution

In order to use the XCPplus block, we have to specify which configuration should be used.

We can do this setting the Transport Layer Instance property found in MC Set Property.vi >> ECU >> XCP >> Transport Layer Instance:

Please note:

  • Setting “Transport Layer Instance” resets all communication parameters. Therefore, it should be set first.
  • The string passed to the “XCP Transport Layer Instance” input must match the value of the keyword “TRANSPORT_LAYER_INSTANCE” from the A2L file. 
  • We can use MC Get Names (XCP on XXX – Transport Layer Instance Names) to extract a list of names for a given protocol from the A2L file.