mirror of https://github.com/wolfSSL/wolfBoot.git
update the sim hal to erase with FLASH_BYTE_ERASED
instead of 0xff since FLAGS_INVERT doesn't use 0xffpull/343/head
parent
d736c91837
commit
1d859ef07c
|
@ -120,7 +120,7 @@ int hal_flash_erase(uintptr_t address, int len)
|
|||
memset((void*)address, 0xEE, len);
|
||||
exit(0);
|
||||
}
|
||||
memset((void*)address, 0xff, len);
|
||||
memset((void*)address, FLASH_BYTE_ERASED, len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,7 @@ int ext_flash_read(uintptr_t address, uint8_t *data, int len)
|
|||
|
||||
int ext_flash_erase(uintptr_t address, int len)
|
||||
{
|
||||
memset(flash_base + address, 0xff, len);
|
||||
memset(flash_base + address, FLASH_BYTE_ERASED, len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue