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

Updated Jan 27, 2020

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 like this picture:

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” string input has to 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.