cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 SPI overrun error

Nixz
Associate III
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
1 REPLY 1
slimen
Senior
Posted on November 03, 2016 at 10:31

Hello,

You can share your code to more understand the issue you are facing.

Regards