• Send PROGRAM_CLEAR to erase a range of non-volatile memory starting at the current MTA.

    Parameters

    • handle: string

      Connection handle returned by XcpCreateConnection.

    • mode: number

      0x00 = absolute access (byte/element count), 0x01 = functional access (bit mask).

    • clearRange: number

      32-bit length or functional erase mask.

    Returns Promise<number[]>

    Raw positive response payload bytes.

    If the handle is unknown, the slave replies with ERR, or the request times out.