Skip to main content
KT_it
Associate II
April 12, 2021
Solved

Image widget drawing issue while Box widgets are ok

  • April 12, 2021
  • 8 replies
  • 3545 views

I'm working on a project based on STM32F769ii MCU with external Flash via Qaud-SPI and 480x800 DSI LCD(no onboard GRAM). I have successfully integrated TouchGFX into my project however I see unexpected artefacts with the image widgets. Box widgets are drawn correctly. I use a button in my project to invalidate the image and box widgets to force them to be redrawn by doing so image widgets colour is wrong 80% of the times with no issues with the box widget.

TouchGFX is set up for double buffering with each buffer located in a separate bank on the SDRAM chip. moving the image files into the internal flash didn't solve the issue. I also tried RGB888 and RGB556 configurations, the system behaves the same.

The first image is what I'm expecting to see and the second image is what is depicted on the LCD.

Any idea how I can fix this issue?

This topic has been closed for replies.
Best answer by KT_it

The issue has been rectified by enabling QUAD-SPI's "Sample Shifting" feature.

8 replies

Romain DIELEMAN
ST Employee
April 12, 2021

Hi,

Have you tried with other images to see if it was all images that are not properly handled or if it is just this one ?

/Romain

KT_it
KT_itAuthor
Associate II
April 12, 2021

Yes I tried with other images the same issue, and sometimes half of the image is missing while background box colour in that area is fine.

It looks like DMA2D and the LTDC both try to access the same buffer at the same time. I could provide you with the cube MX project file which is used to configure TouchGFX, LTDC, DMA2D and DSI peripherals, if needed.

Regards,

KTaw

Romain DIELEMAN
ST Employee
April 13, 2021

I can have a look, I can't promise anything thought :grinning_face_with_sweat:

/Romain

KT_it
KT_itAuthor
Associate II
April 15, 2021

Thanks Romain. That would be much appreciated.

Meanwhile I was wondering if you have any working TOUCHGFX project for STM32F769I-DISCO in video mode. this could me to investigate the issue.

Cheers,

KTaw

KT_it
KT_itAuthorBest answer
Associate II
April 19, 2021

The issue has been rectified by enabling QUAD-SPI's "Sample Shifting" feature.

Romain DIELEMAN
ST Employee
April 19, 2021

Great to hear that :thumbs_up: How did you know you had to change that in the end ?

/Romain

KT_it
KT_itAuthor
Associate II
April 21, 2021

The clue was in the behaviour difference between image and box widgets. Box widgets don't use QSPI resources whereas Images are fetched from QSPI if they are located at the external flash. My initial QSPI test, at the beginning of the project, was based on the button widget which has a smaller size image, so the issue wasn't occurring there. But with a larger size image because the QSPI is fetched more frequently the issue surfaces itself.

Regards,

KTaw