Обновление

This commit is contained in:
cfif 2026-04-16 13:57:47 +03:00
parent 7427ed704d
commit 5c91d9d876
1 changed files with 0 additions and 8 deletions

View File

@ -954,7 +954,6 @@ static uint16_t vUDS_routine_Compare_Checksum(tCanUds *env, eUdsRoutineControlTy
return 4 + 1; return 4 + 1;
} }
uint8_t zzz[2048];
static uint16_t vUDS_routine_Erase_Memory(tCanUds *env, eUdsRoutineControlType udsRoutineControlType) { static uint16_t vUDS_routine_Erase_Memory(tCanUds *env, eUdsRoutineControlType udsRoutineControlType) {
@ -965,15 +964,8 @@ static uint16_t vUDS_routine_Erase_Memory(tCanUds *env, eUdsRoutineControlType u
bool result = env->clear_flash_func(0x01100000, 512 * 1024); bool result = env->clear_flash_func(0x01100000, 512 * 1024);
// bool result = FLASHDRIVER_FlashEraseBlock(FLASH_BLOCK_SELECT1); // bool result = FLASHDRIVER_FlashEraseBlock(FLASH_BLOCK_SELECT1);
uint32_t adr = 0x01100000;
for (uint32_t i = 0; i < 256; ++i) {
env->write_flash_func(adr, zzz, 2048);
adr += 2048;
}
if (result) { if (result) {
env->dataResponse[4] = UDS_routine_RoutineStartStopSuccess; env->dataResponse[4] = UDS_routine_RoutineStartStopSuccess;
} else { } else {