SPI TXE or RXNE never goes to 1
hello
I am using an STM32F7 series microcomputer.
with SPI peripherals
If writeable, write to the data register,
After that, if it is readable, it is reading from the data register.
The image in the code is like below,
Writeable, readable loops infinitely until it becomes possible.
These are checking his TXE, RXNE in the status register.
while (!writeable());
write();
while (!readable());
read();
After running for a while, I end up in an infinite loop on one of these.
Please tell me the reason why TXE is not 1.
What is the reason why RXNE does not become 1?
Thank you.