2019-11-23 03:40 PM
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!
2019-11-24 02:03 AM
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
2019-11-24 02:31 AM
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.
2019-11-24 05:17 AM
> 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
2020-09-25 05:52 AM
Hello @Logann123321, I am having the same problem with the STM32H7. Did you find a solution for this?