Skip to main content
Logann123321
Associate II
November 23, 2019
Question

SPI_DMAAbortOnError when trying the spi example dma

  • November 23, 2019
  • 4 replies
  • 1252 views

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!

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
November 24, 2019

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 II
November 24, 2019

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.

waclawek.jan
Super User
November 24, 2019

> 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
September 25, 2020

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