cancel
Showing results for 
Search instead for 
Did you mean: 

SPI1(STM32F0x) in Slave mode is not sampling input stream at 1Mbps fifo full overflow is happening

srinivasa
Associate

Hi,

We are using STM32F072RBT6 in our project.

We have configured the SPI1 in Slave mode(8bit/16bit) in-order to receive the input stream @1Mbps with 64bytes frames.
we have observed that the FIFO full and overflow is happening @Spi slave while receiving the data stream @1Mbps.
Pl provide inputs in this regard.


 

2 REPLIES 2
TDK
Guru

> we have observed that the FIFO full and overflow is happening @Spi slave while receiving the data stream @1Mbps.

Use DMA to retrieve data before the FIFO fills up. You can also use interrupts, but code needs to be fast enough to keep up.

Using circular DMA which is always enabled and polling for new data occasionally (or using the half- and full-complete interrupts to do so) is a common and viable strategy.

If you feel a post has answered your question, please click "Accept as Solution".