cancel
Showing results for 
Search instead for 
Did you mean: 

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

IGama.1
Associate

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?

1 REPLY 1
KDJEM.1
ST Employee

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 

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.