2013-11-21 06:25 AM
Hi,
I would like to ask if there is a way to clear the FRLVL and RXNE bits in SPIx->SR in order to ignore everything that has been received before. I have some routines that only send data and other that will also receive and in these I have to loop through until RXNE is cleared. I would like to avoid this. Thanks for any help Martin2013-11-21 06:48 AM
Try resetting the SPI peripheral through SPIxRST bits in the respective RCC_APByRSTR register.
JW2013-11-21 08:13 AM
Hi Jan,
I thought about that too. But it will reset all my SPI settings which I would have to restore then. Thanks anyway Martin2013-11-21 09:06 AM
Martin,
I guess you have no more options than these two - see description of SPI disable procedure in the RM. JW