2020-10-29 04:07 AM
if ((SPIx->SR & SPI_I2S_FLAG) != (uint16_t)RESET)
{
/* SPI_I2S_FLAG is set */
bitstatus = SET;
}
else
{
/* SPI_I2S_FLAG is reset */
bitstatus = RESET;
}
/* Return the SPI_I2S_FLAG status */
return bitstatus;
2020-10-29 04:48 AM
I don't see a question here. What flag are you checking for?
2020-11-01 08:52 PM
i am doing interfacing of external flash with stm32f030RC, when i am calling Erase function or write function, code is getting stuck in above loop.
2020-11-01 11:56 PM
Debugging may be intrusive. From RM:
Clearing the RXNE bit is performed by reading the SPIx_DR register.
JW