Skip to content

Commit

Permalink
Merge pull request wolfSSL#413 from danielinux/same51_erase_fix
Browse files Browse the repository at this point in the history
SAM E51: hal_flash_erase bugfix
  • Loading branch information
dgarske authored Feb 29, 2024
2 parents c2388cd + 32057f1 commit 69556cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hal/same51.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ int RAMFUNCTION hal_flash_erase(uint32_t address, int len)
while(!(NVMCTRL_INTFLAG & NVMCTRL_INTFLAG_CMD_DONE))
;
len -= WOLFBOOT_SECTOR_SIZE;
address += WOLFBOOT_SECTOR_SIZE;
}
return 0;
}
Expand Down

0 comments on commit 69556cd

Please sign in to comment.