From 9cf228f3d64e6f535cfb2bb833cc581942c8a5ca Mon Sep 17 00:00:00 2001 From: cfif Date: Fri, 29 May 2026 15:04:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BB=D0=B0=D1=82=D1=8B=20=D0=BD?= =?UTF-8?q?=D0=B0=20V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inc/CanSerialPortFrameXCP.h | 3 ++- Src/CanSerialPortFrameXCP.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Inc/CanSerialPortFrameXCP.h b/Inc/CanSerialPortFrameXCP.h index 2c07e5a..ed08429 100644 --- a/Inc/CanSerialPortFrameXCP.h +++ b/Inc/CanSerialPortFrameXCP.h @@ -590,7 +590,8 @@ typedef struct __attribute__ ((packed)) { } eXcpCommand_XCP_GET_CAL_PAGE_EA; -typedef bool (xcp_clear_flash_func)(uint32_t firstPageAddr, uint32_t totalSize); +typedef bool (xcp_clear_flash_func)(uint32_t firstPageAddr, uint32_t totalSize, void *wdTriggerFct, +void *wdTriggerFct_env); typedef bool (xcp_write_flash_func)(uint32_t beginPageAddr, void *sourceRamAddr, uint32_t size); diff --git a/Src/CanSerialPortFrameXCP.c b/Src/CanSerialPortFrameXCP.c index 1b1e81b..303b4c8 100644 --- a/Src/CanSerialPortFrameXCP.c +++ b/Src/CanSerialPortFrameXCP.c @@ -1077,7 +1077,7 @@ static uint8_t XCP_PROGRAM_CLEAR_D1(tCanSerialPortFrameXCP *env) { return 2; } - env->clear_flash_func(env->ADR_MTA, request->CLEAR_RANGE); + env->clear_flash_func(env->ADR_MTA, request->CLEAR_RANGE, NULL, NULL); } else { env->response[0] = XCP_COMMAND_DISCONNECT;