Обновление платы на V2
This commit is contained in:
parent
c13fab1272
commit
4231b5761e
4
CanUds.c
4
CanUds.c
|
|
@ -998,9 +998,9 @@ static uint16_t vUDS_routine_Erase_Memory(tCanUds *env, eUdsRoutineControlType u
|
||||||
|
|
||||||
setResponseErrorPending(env, UDS_RoutineControl, UDS_error_requestCorrectlyReceived_ResponsePending);
|
setResponseErrorPending(env, UDS_RoutineControl, UDS_error_requestCorrectlyReceived_ResponsePending);
|
||||||
|
|
||||||
bool result = env->clear_flash_func(0x01100000, 512 * 1024);
|
// bool result = env->clear_flash_func(0x01100000, 768 * 1024);
|
||||||
|
|
||||||
// bool result = FLASHDRIVER_FlashEraseBlock(FLASH_BLOCK_SELECT1);
|
bool result = FLASHDRIVER_FlashEraseBlock(FLASH_BLOCK_SELECT1);
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
env->dataResponse[4] = UDS_routine_RoutineStartStopSuccess;
|
env->dataResponse[4] = UDS_routine_RoutineStartStopSuccess;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue