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
Daniele Lacamera 2026-07-02 17:01:22 +02:00
parent aecf904978
commit d977baa60e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {