MC Clear Memory.vi
- Updated2025-09-25
- 4 minute(s) read
Purpose
Clears the contents of a specified memory block.
Format

Input
|
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. | ||||||
|
Address is a cluster which contains the following values.
|
||||||
|
Block size determines the size of the block that has to be calculated. | ||||||
|
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 Clear Memory.vi can be used to erase the FLASH EPROM prior to reprogramming. If you are using CCP, the CCP Memory Transfer address (MTA0) pointer is set to the memory location to be erased specified by the parameters Address and Extension. MC Clear Memory.vi implements the CCP CLEAR_MEMORY command defined by the CCP specification.
If you are using the XCP protocol, MC Clear Memory.vi implements the PROGRAM_CLEAR command.
For further details on how to clear parts of non-volatile memory in the ECU refer to the ASAM XCP Protocol Layer Specification.






