cancel
Showing results for 
Search instead for 
Did you mean: 

SPI_DMAAbortOnError when trying the spi example dma

Logann123321
Associate III

Hi I am tryingthe spi dma example for stmH7 nucleo board, it is always takes me to the SPI_DMAAbortOnError function, and it looks like it is because it gives HAL_SPI_ERROR_UDR, any idea what could have caused it? For my master I am using 1Mbps clock

Thanks!

4 REPLIES 4

Underrun? According to manual, that happens only for slave transmitter. You don't feed data fast enough to keep up with the master's clock.

JW

Logann123321
Associate III

Hi yes my stm32h7 is working in slave mode and by master clock I meant the module that is communicating with my stmH7 mcu, and I understand that underrun means data cannot keep up with master's clock, but the master clock is only 1Mbps, I don't think it is too fast for the stmH7 to keep up.

> I don't think it is too fast for the stmH7 to keep up.

Well, unless you know master will read only N frames and then pauses, that depends also on your code, how fast can it prepare the next buffer for DMA, doesn't it.

JW

murrellr
Associate II

Hello @Logann123321, I am having the same problem with the STM32H7. Did you find a solution for this?