diff --git a/boot/zephyr/single_loader.c b/boot/zephyr/single_loader.c index 253015e9..97c212a7 100644 --- a/boot/zephyr/single_loader.c +++ b/boot/zephyr/single_loader.c @@ -350,7 +350,7 @@ decrypt_image_inplace(const struct flash_area *fa_p, memset(&_bs, 0, sizeof(struct boot_status)); /* Get size from last sector to know page/sector erase size */ - rc = flash_area_sector_from_off(boot_status_off(fa_p), §or); + rc = flash_area_get_sector(fap, boot_status_off(fa_p), §or); image_index = BOOT_CURR_IMG(state);