Cypress FX3 SDK EXAMPLE serial interface GpioSpiFlash | Cypress Semiconductor
Cypress FX3 SDK EXAMPLE serial interface GpioSpiFlash
why is the function GetSpiFlashStatus reading the status of th SPI flash module twice?
The checks at the end of the do while loop just compare the first received byte concerning on BUSY and WIP flags. Also the datasheet of the M25P40 is telling no need to read the status twice at the instruction set description.
But what I have identified is, that it results in wrong writes if I read the status at that place just once.
Can anybody explain me that behaviour, please?