diff --git a/ion/src/device/shared/drivers/external_flash.cpp b/ion/src/device/shared/drivers/external_flash.cpp index 4eb3129d2..2de53139d 100644 --- a/ion/src/device/shared/drivers/external_flash.cpp +++ b/ion/src/device/shared/drivers/external_flash.cpp @@ -263,7 +263,10 @@ static void initGPIO() { static void initQSPI() { // Enable QUADSPI AHB3 peripheral clock RCC.AHB3ENR()->setQSPIEN(true); - // Configure controller for target device + /* Reset QSPI peripheral */ + RCC.AHB3RSTR()->setQSPIRST(true); + RCC.AHB3RSTR()->setQSPIRST(false); + // Configure controller for target device class QUADSPI::DCR dcr(0); dcr.setFSIZE(NumberOfAddressBitsInChip - 1); /* According to the device's datasheet (see Sections 8.7 and 8.8), the CS