Skip to main content
JSpan.1
Associate
June 18, 2020
Question

Black lines when using DMA2D on STM32H7 with SDRAM

  • June 18, 2020
  • 2 replies
  • 1675 views

Hi,

I am using TouchGFX 4.13 on a STM32H750XB.

I'm using a 800x480 screen, so the framebuffers are placed in external SDRAM.

My code is based of the example project for the STM32H750B-DK, and almost

everything seems to be working except for the fact that I get black lines when enabling the Chrom-Art.

Here is an example of what it looks like:

0693W000001qxUwQAI.png

These lines seem to appear when dma2d is used to add an image to the framebuffer.

(Some TiledImages are used, explaining the seemingly random lines at the left/bottom).

When the Chrom-Art is not used, everything looks fine.

Similar code has worked when using a smaller screen and placing the framebuffers in AXI-SRAM, so my guess is that this problem has something to do with the SDRAM, but I can't figure out what it is I'm doing wrong.

Does anybody have any suggestions?

This topic has been closed for replies.

2 replies

Martin KJELDSEN
Principal III
June 18, 2020

To rule out issues with DMA2D you could try using the NoDMA class instead of your current one (STM32DMA probably). If the issue remains then could be SDRAM.

/Martin

JSpan.1
JSpan.1Author
Associate
June 18, 2020

I've found the solution, the pins for FMC_NBL were not initialized properly.

Martin KJELDSEN
Principal III
June 18, 2020

Great! :)