Skip to content
Commit 259d989f authored by Stephane Le Roy's avatar Stephane Le Roy Committed by Fabio Utzig
Browse files

bootutil: Fix erase of trailer when located in scratch area



Trailer is temporary located in scratch when data of image goes up to last
sector of primary slot. At the end of the swap procedure, the temporary
trailer in scratch must be erased to prevent mcuboot from reading a stale
status from the scratch area. The erase tentative was not correct, this
is fixed.Issue is easily reproduced with an image size of one sector.

Signed-off-by: default avatarStephane Le Roy <stephane.leroy@st.com>
Signed-off-by: default avatarMichel Jaouen <michel.jaouen@st.com>
parent e8294b2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment