SPI slave transmit receive trouble
Hello,
I am working with a STM32F446ZET6 and using it as an SPI slave.
I use the function HAL_SPI_Transmit_Receive_IT function to receive 4 bytes of data.
It used to work properly in our conception, for example when the master sends 0x12, 0x34, 0x56, 0x78, in my reception buffer on the slave side i receive correctly the data in this order.
Recently, we received 10 new boards: on one of them the SPI is behaving strangely when the sending frequency is above 1000Hz. When the master send the same data as above, sometimes the STM32 receive them in disorder :
meaning that in the reception buffer we may have 0x34, 0x56, 0x78, 0x12.
When troubleshooting it appears the problem comes from the STM32 because when we replace it, the problem disappeared.
But I don't understand this problem that appear with some chips.
Is there a way to fix that with code?
