cancel
Showing results for 
Search instead for 
Did you mean: 

Display flickering STM32F746

Hello, I am using STM32F746 with FMC SDRAM, QSPI flash, DMA2D. I observed my display is flicking. You can check video using below link.

https://drive.google.com/file/d/1j3uyyHWHlFO-fGW23RI33Iyos6meYaB-/view?usp=sharing

Any suggestions for solving this issue.

I am using custom board with MCU 746 with below software with version :

  • Touchgfx 4.15.0
  • CubeMX 5.4.0
  • IDE : System workbench for STM32

Thanks

32 REPLIES 32
Slh
Senior

Change (reduce) the LCD-Clock Speed and test.

I tried.. Kinda same

Move widget, which is flickering, to top, above other widgets

Like this

0693W000006HQTbQAO.png

@EEuge​  If you will check video, everything is kinda flickering.

Alexandre RENOUX
Principal

Hello Chandan Bhatia,

From the look of your video, I suppose that you have created your project from scratch with a custom display.

I believe it's related to the DMA2D. First check your MPU settings.

Also uncomment all the lines where you have SCB_CleanInvalidateDCache(); (They should be located in STM32DMA.cpp and TouchGFXHAL.cpp).

/Alexandre

@Alexandre RENOUX​  Hi, I am using custom board with MCU 746 with below software with version :

  • Touchgfx 4.15.0
  • CubeMX 5.4.0
  • IDE : System workbench for STM32

Below are the settings for DMA2D

0693W000006HUi7QAG.png 

In My project, I searched for SCB_CleanInvalidateDCache(), but I am not directly calling it anywhere.

0693W000006HUiLQAW.pngI didn't enable MPU. Check my system view.

0693W000006HUiVQAW.png

MPU needs to be enabled. Please refer to the Application Template F746-DISCO available in TouchGFX Designer.

/Alexandre

Which MPU setting should I choose? Also I enabled DMA2D but below ART accelerator is disabled. Is this fine?

0693W000006HUq0QAG.png 

Upload your project here. It seems, I know course of your flicker...