Skip to content
Snippets Groups Projects
Commit 07efc9e3 authored by TsiChung Liew's avatar TsiChung Liew Committed by John Rigby
Browse files

Change CFG_ENV_SIZE to CFG_ENV_SECT_SIZE for SPI sector erase


The CFG_ENV_SIZE is not suitable used for SPI flash erase
sector size if CFG_ENV_SIZE is less than CFG_ENV_SECT_SIZE.
Add condition check if CFG_ENV_SIZE is larger than
CFG_ENV_SECT_SIZE, calculate the right number of sectors for
erasing.

Signed-off-by: default avatarTsiChung Liew <Tsi-Chung.Liew@freescale.com>
parent 4cb4e654
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment