Skip to main content
Visitor II
August 7, 2025
Question

STM32F429I-DISCO DMA2D + SDRAM Issue (Interrupt Mode Fails, Polling Works)

  • August 7, 2025
  • 1 reply
  • 286 views

I'm using STM32F429I-DISCO with external SDRAM and DMA2D to render graphics.
CPU run at 180 Mhz
Sdram 90mhz
Ltdc clock: 3mhz

Lcd : 240*320 color RGB565
Issue:

I use DMA2D to fill the screen, then on Transfer Complete interrupt, I trigger a second DMA2D to draw a sprite.

It works fine in debug mode, but in real-time, the sprite is not drawn.

If I switch to polling mode (HAL_DMA2D_PollForTransfer()), it works correctly.

The interrupt may fire before SDRAM is truly ready for the next transfer.

The question:

How to reliably chain DMA2D operations with SDRAM in interrupt mode to fully offload cpu?

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 26, 2025

    Hello @IGama.1;

     

    What do you mean by "in real-time"? Does mean that during the code running the code or during step-by-step debugging?

    Could you please try to increase the interrupt priority.

     

    Thank you.

    Kaouthar