From 5c91d9d87686377f6aa6abae5ae69651e89138e6 Mon Sep 17 00:00:00 2001 From: cfif Date: Thu, 16 Apr 2026 13:57:47 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CanUds.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CanUds.c b/CanUds.c index 922f80c..ee22d4d 100644 --- a/CanUds.c +++ b/CanUds.c @@ -954,7 +954,6 @@ static uint16_t vUDS_routine_Compare_Checksum(tCanUds *env, eUdsRoutineControlTy return 4 + 1; } -uint8_t zzz[2048]; 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 = 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) { env->dataResponse[4] = UDS_routine_RoutineStartStopSuccess; } else {