diff --git a/samples/boards/esp32/flash_encryption/src/main.c b/samples/boards/esp32/flash_encryption/src/main.c index 14a8dba5ed3..41f542b83b4 100644 --- a/samples/boards/esp32/flash_encryption/src/main.c +++ b/samples/boards/esp32/flash_encryption/src/main.c @@ -24,7 +24,7 @@ void main(void) { uint8_t buffer[32]; const struct device *flash_device; - off_t address = FLASH_AREA_OFFSET(storage); + off_t address = FIXED_PARTITION_OFFSET(storage_partition); flash_device = DEVICE_DT_GET(DT_CHOSEN(zephyr_flash_controller)); if (!device_is_ready(flash_device)) {