Skip to main content
Associate III
May 7, 2020
Question

Why engine hangs if I have a background image that do not have default pixel format ?

  • May 7, 2020
  • 14 replies
  • 2245 views

I'm trying TouchGFX on a STM32H7B3I-DK board and managed to have it running with RGB565 pixel format. The first screen has an image has background and one image, one text area and one button on it. If the background image is specified with the default RGB565 format everything is fine but if I make it L8_RGB565 the drawing engine hangs and never return from backPorchExited() in TouchGFXHAL::taskEntry() function.

When using default RGB565 for background image I may change the image with a SetBitmap using an L8_RGB565, I may also switch to a second screen that has a L8 background image, so the problem is limited to the setup of the first screen.

Has someone encountered the same problem, or did I forget some initialisation of CLUT or ...

This topic has been closed for replies.

14 replies

Martin KJELDSEN
Principal III
May 11, 2020

Hi @PJEN​,

You shouldn't need to do any CLUT initialization manually. Just to get you right, are you saying that it works when you use setBitmap() at run-time (not during setup)?

/Martin

PJENAuthor
Associate III
May 11, 2020
Hello Martin,
Yes, exactly, it does not work during setup but it works if I call setBitmap() at run time with an L8_RGB565 full screen image.
I specify here that it’s a ‘full screen’ image (480x272) because I tried to make the first screen with a full screen BOX filled with a solid color as background + a smaller png image coded in L8_ARGB8888 (as I needed transparent pixels) … and this also works at setup time !!
BR,
Pierre
Martin KJELDSEN
Principal III
May 12, 2020

Okay, before i dive into this i'd like to ask if you've done any debugging to see where the application is hanging?

/Martin