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 {