Hi,
Assuming I'm sending 5 bytes and simultaneously I'll receive 5 bytes from the slave.
5 bytes are written to FIFO then SSI is enabled.
To know if the 5 bytes are transmitted, I would check if TFE is true.
Then I want to empty the received 5 bytes . I would check on while RNE is true keep reading the FIFO.
Is there any problem in checking the flags in the two case ?
Thanks