Обновление платы на V2

This commit is contained in:
cfif 2026-05-29 15:04:59 +03:00
parent 79f6d1041e
commit 9cf228f3d6
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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;