diff --git a/drivers/flash/spi_nor.c b/drivers/flash/spi_nor.c index ceb30f39c2a..ddfdbd6c81d 100644 --- a/drivers/flash/spi_nor.c +++ b/drivers/flash/spi_nor.c @@ -1148,6 +1148,13 @@ static int spi_nor_configure(const struct device *dev) * Exit DPD and wait until flash is ready. */ acquire_device(dev); + + rc = exit_dpd(dev); + if (rc < 0) { + LOG_ERR("Failed to exit DPD (%d)", rc); + return -ENODEV; + } + rc = spi_nor_rdsr(dev); if (rc > 0 && (rc & SPI_NOR_WIP_BIT)) { LOG_WRN("Waiting until flash is ready");