Skip to main content
Nixz
Associate III
October 21, 2016
Question

STM32 SPI overrun error

  • October 21, 2016
  • 1 reply
  • 906 views
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
    This topic has been closed for replies.

    1 reply

    slimen
    Visitor II
    November 3, 2016
    Posted on November 03, 2016 at 10:31

    Hello,

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

    Regards