AnsweredAssumed Answered

SPI overrun

Question asked by Francisco Expósito on Nov 7, 2016
Latest reply on Jan 12, 2018 by Francisco Expósito
Hello everyone,


I'm trying to read an external SPI flash using DMA but I occasionally get an SPI overrun error.


I've managed to track down the error: I get no overrun errors when I disable the LTDC IRQ. And more specifically, when I disable the following line placed on the IRQ handler:
HAL_LTDC_ProgramLineEvent(hltdc, 0);


My microcontroller is a STM32F429 and priorities are defined as follows:

HAL_NVIC_SetPriority(DMA2_Stream2_IRQn, 2, 0); // RX
HAL_NVIC_SetPriority(DMA2_Stream5_IRQn, 3, 0); // TX
HAL_NVIC_SetPriority(SPI1_IRQn, 4, 0);
HAL_NVIC_SetPriority(LTDC_IRQn, 5, 0);
Any ideas?

Thank you very much for your time.