Why RXNE is automatically reset after write data to DR register, even I already set the FRXTH to 1
I have a problem where even I already set the FRXTH to 1, the RXNE will automatically RESET after the SPI write data to DR register.
I check using DEBUGGING MODE:
In main(), I already SET the FRXTH based on the reference manual below:
Then, after I write the data into DR register, it SET the RXNE as below:
But, after I execute the next instruction, which is not related to any SPI, Len-- to go out from the loop, my RXNE automatically RESET as below:
This cause my code will hang at the SPI check flag status in the SPI ReceiveData.
Anyone knows what is the problem? or my SPI_senddata code is problem
