Skip to main content
MCerv.2
Associate II
April 6, 2023
Solved

Image widget not showing properly

  • April 6, 2023
  • 3 replies
  • 2525 views

Hi! I'm running TouchGFX 4.21.3 on a custom board with the following hardware.

  • STM32L452RET6
  • QSPI W25Q128JV for storage
  • LCD 320x172 SPI ST7789v3

Everything is working fine expect that image widgets that contain alpha values are now shown properly. I'm still trying to understand the settings that might help solve this problem, here is my setup in TouchGFX:


_legacyfs_online_stmicro_images_0693W00000bhelkQAA.png

  • The icons on the top left and right corners have some colours that are not totally white.
  • The icons are png files saved in RGB 8bit mode for all channels.
  • The icons for the battery that are drawn with just completely white pixels work just fine.
  • Images are stored in the external flash and are fetched through QSPI DMA.

The configuration for TouchGFX images is as follows


_legacyfs_online_stmicro_images_0693W00000bheoKQAQ.pngHere is how it looks like on the actual hardware


_legacyfs_online_stmicro_images_0693W00000bheuhQAA.pngI've also tried different settings and modifying the defaults on the Image asset table without any luck.

Can anyone explain what I'm I missing or what combination of settings should I use?

Thanks,

Martin

This topic has been closed for replies.
Best answer by MCerv.2

Turns out that it was an issue with the external flash. I did a mass erase on the entire flash storage, then programmed it again and now it works just fine. Not sure why the sector erase and write data commands where not overwriting any existing garbage on the memory though...

3 replies

MCerv.2
MCerv.2AuthorBest answer
Associate II
April 6, 2023

Turns out that it was an issue with the external flash. I did a mass erase on the entire flash storage, then programmed it again and now it works just fine. Not sure why the sector erase and write data commands where not overwriting any existing garbage on the memory though...

Osman SOYKURT
ST Technical Moderator
April 11, 2023

Hello MCerv.2,

Good to hear you've found what was the issue. I would expect the memory to be cleaned when running on the target too. We'll investigate this, thank you for reporting.

/Osman

ST Software Developer | TouchGFX
MCerv.2
MCerv.2Author
Associate II
April 11, 2023

Hi Osman, upon further investigation the issue was on my custom Flash External Loader, the routine SectorErase wasnt properly clearing each section on flash before writing to it.