mirror of https://github.com/wolfSSL/wolfBoot.git
hal/mcxw: fix truncated empty-word sentinel
empty_qword[0] was 0xFFFFFFF (7 nibbles), so a fully-erased 16-byte word never compared equal and was always reprogrammed.pull/814/head
parent
aecf904978
commit
d977baa60e
|
|
@ -155,7 +155,7 @@ int RAMFUNCTION hal_flash_write(uint32_t address, const uint8_t *data, int len)
|
|||
int w = 0;
|
||||
const uint32_t flash_word_size = 16;
|
||||
const uint32_t empty_qword[4] = {
|
||||
0xFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
|
||||
0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
|
||||
};
|
||||
|
||||
while (len > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue