+36
−3
Loading
Previously when `MCUBOOT_OVERWRITE_ONLY_FAST` was set, the whole amount
of sectors that stored an image were being copied. After this commit
only the exact amount of data used by the image is copied; this avoids
copying some 0xff (or garbage) data between the end of the image and the
end of the last sector storing it.
Extra trailer management was added which suits using the copy upgrade
routine also for bootstrapping.
Signed-off-by:
Fabio Utzig <fabio.utzig@nordicsemi.no>
CRA Git | Maintained and supported by SUSTech CRA and CCSE