How to reset SPI interface after HAL_SPI_TransmistReceive_IT?
Hello,
I'm working with a STM32F446 and I configured the SPI as slave.
In my process I receive x bytes of data in interruption. But during the process, this size of data changes to y. But the function HAL_SPI_TransmitReceive_IT(x) has already been called with the value x.
I tried resetting the SPI interface to be able to receive those y bytes (HAL_SPI_TransmitReceive_IT(y)). But it is not working, I still receive the data with a shift, due to the previous size.
What is the proper way to fix this?
Thanks in advance