MC XCP Program Verify.vi
- Updated2025-09-25
- 4 minute(s) read
Purpose
Performs a non-volatile memory certification task on the ECU device.
Format

Input
|
Verification mode may be defined as: |
| Type | Description |
|---|---|
| 0 | Request to start an internal routine. |
| 1 | Transmit a Verification Value. |
|
ECU ref in is the task reference which links to the selected ECU. This reference is originally returned from MC ECU Open.vi or MC ECU Select.vi, and then wired through subsequent VIs. |
|
Verification type specifies the Verification Type of the requested program verification. The Verification Type is a bit mask described below: |
| Verification Type | Description |
|---|---|
| 0x0001 | Calibration area(s) of the flash. |
| 0x0002 | Code area(s) of the flash. |
| 0x0004 | Complete flash content. |
| 0x0008...0x0080 | Reserved. |
| 0x0100...0xFF00 | User defined. |
|
Verification value is project-specific. | ||||||
|
Error in is a cluster which describes error conditions occurring before the VI executes. If an error has already occurred, the VI returns the value of the error in cluster to error out.
|
Output
|
ECU ref out is the same as ECU ref in. Wire the task reference to subsequent VIs for this task. | ||||||
|
Error out describes error conditions. If the Error in cluster indicated an error, the Error out cluster contains the same information. Otherwise, Error out describes the error status of this VI.
|
Description
MC XCP Program Verify.vi may be used to verify the success of non-volatile memory reprogramming.
With Verification mode set to 00 the master may request the slave to begin internal test routines to check whether the new flash contents fits to the rest of the flash. Only the result is of interest. With Verification mode set to 01, the master may tell the slave that it will be sending a Verification value to the slave. The definition of the Verification mode is project-specific. The master receives the Verification mode from the project-specific programming flow control and passes it to the slave.
MC XCP Program Verify.vi implements the optional XCP PROGRAM_VERIFY command defined by the XCP specification. For further information on how to program non-volatile ECU memory refer to the ASAM XCP Part 2 Protocol Layer Specification.





