STM32F7 SPI Runtime OR Memory access problems
Hi Community,
I have a STM32F769I as a SPI slave.
I want to receive up to 6kByte data in 244 Byte packets (consequently up to 25 SPI packets á 244 Byte).
I am using the HAL_SPI_TxRxCpltCallback function. This function will be called after every 244 Byte packet; and stores the received data in a 6 kByte data buffer. After all data has been received a flag will be set to activate a print function in the main.
For now, the 6 kByte (dummy) data frames will be send every 2 seconds by the SPI master.
However, the STM32 sometimes misses SPI packets and consequently mess up the data.
As soon as I exceed an amount of data (4392 Byte = 18 packets á 244 bytes) the STM misses packets in a transaction and thus the data will only be printed after every second transaction.
Furthermore, memory access problems occure every now and then ending up in the HardFault_handler.
I think, I am facing some timing problems due to interrupts as well as memory access problems.
Any suggestions?
