Skip to content

Commit 9c84013

Browse files
de-nordicnordicjm
authored andcommitted
Revert "zephyr: Use flash_area_flatten in bs_custom_storage_erase"
Need to revert changes provided to support devices without erase until problme with TF-M, missing implementation of flash_area_get_sector, is resolved. This reverts commit ecd4877. Signed-off-by: Dominik Ermel <[email protected]>
1 parent c513187 commit 9c84013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/boot_serial_extension_zephyr_basic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int bs_custom_storage_erase(const struct nmgr_hdr *hdr,
4747
if (rc < 0) {
4848
BOOT_LOG_ERR("failed to open flash area");
4949
} else {
50-
rc = flash_area_flatten(fa, 0, flash_area_get_size(fa));
50+
rc = flash_area_erase(fa, 0, flash_area_get_size(fa));
5151
if (rc < 0) {
5252
BOOT_LOG_ERR("failed to erase flash area");
5353
}

0 commit comments

Comments
 (0)