Incorrect order of SPI datas?
I use my STM32F469I-DISCO board as slave to communicate with Arduino Mega. The communication is OK. I got the correct values in my array (uint8_t buff_read[10]). But the order is not correct! It shifted with some index but not a fixed number. If i run the code on the board, for example the indexes shifted with 2. If I compile the code again and download on the board the datas shifted for example with 7... What is the problem? Should I maybe flush the Rx_DR before the first read? How can I do it? (I use interrupt mode).
Thanks a lot!