mcuboot/boot/bootutil
Fabio Utzig 178be54bd6 Test erased flash with "flash_area_read_is_empty()"
Mynewt has recently added an encrypted flash layer driver, that runs
transparently on any flash, handling reads and writes, and bypassing
other flash operations to the HW driver. As a result of this change,
checking for erased data cannot be done by read + compare to erased_val
but need to be routed to an empty check on the lower level. To do this
Mynewt added a new flash_map function called "flash_area_read_is_empty"
which checks for erased blocks (and reads/decrypts the data as well).

This commit uses `flash_area_read_is_empty` to determine if magic,
flags and swap status are erased. For Zephyr/sim commits were added
previously that mimic this functionality by simply doing the
read/compare.

Signed-off-by: Fabio Utzig <utzig@apache.org>
2018-10-01 21:42:20 -03:00
..
include/bootutil Update logging to use per platform log macros 2018-06-04 06:54:39 -03:00
src Test erased flash with "flash_area_read_is_empty()" 2018-10-01 21:42:20 -03:00
test Replace mcuboot flash_map by zephyr flash_map 2018-05-16 16:05:17 -03:00
pkg.yml Replace mcuboot flash_map by zephyr flash_map 2018-05-16 16:05:17 -03:00