display glitch with STM32H757
I'm using a 1280x800 pixel display with 72 MHz pixel clock, and an external SDRAM. Sometimes I see glitches like this, where parts of the image is horizontally displaced:
https://www.youtube.com/watch?v=_pluyvL0PvI
The SDRAM is the IS42S32200L with 32 bit data bus. The glitch only happens, when the CPU does other things, like updating a FPS counter on the display. When I stop the program with an infinite while loop, the display is fine.
The glitch happens much more often with a lower SDRAM speed. The video is with 100 MHz clock for the SDRAM. The LTDC is configured in 16 bit mode. So this should be nearly 3 times as much bandwidth as needed. But it also happens sometimes when I configure the SDRAM clock with the maximum allowed 200 MHz, but not as much.
I tried to change the AXI interconnect configuration, prioritizing the QoS setting for the LTDC controller, but no changes.
What can be the reason for the glitches and how to fix it?
