We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2388cd + 32057f1 commit 69556cdCopy full SHA for 69556cd
1 file changed
hal/same51.c
@@ -391,6 +391,7 @@ int RAMFUNCTION hal_flash_erase(uint32_t address, int len)
391
while(!(NVMCTRL_INTFLAG & NVMCTRL_INTFLAG_CMD_DONE))
392
;
393
len -= WOLFBOOT_SECTOR_SIZE;
394
+ address += WOLFBOOT_SECTOR_SIZE;
395
}
396
return 0;
397
0 commit comments