Question
STM32 SPI overrun error
Posted on October 22, 2016 at 01:17
Hi All!
I'm developing simple transmission between two STM32 processors (F767 and F100). I'm using full duplex 4 lines: CLK/MISO/MOSI/NSS lines, 8 bit, motorola frame, no crc, NSS done by hardware on both ends. Master is using: HAL_SPI_TransmitReceive(len=20); Slave is using: HAL_SPI_TransmitReceive_IT(len=20); Transmission is made using 20 byte frames on both ends. First frame is passing fine (HAL_SPI_TxRxCpltCallback is called), NSS signal shows up exactly 20 bytes sent, however subsequent transmissions are causing buffer overrun errors on slave (HAL_SPI_ERROR_OVR and HAL_SPI_ErrorCallback is called)... Any idea what I'm doing wrong? best regards MT #!spi-!overrun