TouchGFX Lined Output on RGB Display
- August 8, 2023
- 17 replies
- 10123 views
Hello,
My TouchGFX application is outputting a static image in the GUI wrongly and I am unsure where the error stems from.
Board: STM32H747I-DISCO
Display: Innolux G057VCE-TH1 (640wx480h RGB666)
Without TGFX, I am able to output a chosen static image array correctly, and when it is on external memory. Thus, I believe my configuration for the LTDC and FMC is correct. When using TGFX, I set up breakpoints for the LTDC FIFO underrun interrupt handler, and it was never triggered.
In TGFX Designer, whether I have the orientation as portrait or landscape, and fill it with the image filling the screen, the output is the same.
This project was initially generated from TouchGFX Designer for the discovery board, and I gradually modified it to accommodate this display. An important change was commenting out DSI and old display controller calls (this new screen does not have a controller, it just uses parallel RGB).
When I am debugging, the program does not run into any infinite-while-loop error handlers.
I inspected the generated cpp array of the color bars image and they seem to be fine.
What I notice from the image is that vertical lines are now drawn horizontally and at a slight angle downwards. Instead of gray, yellow, cyan, green, purple, red, blue from left to right, it is now drawing that progression of colors line by line downwards. This is why I suspect that the problem lies in some orientation configuration affecting how the TGFX engine draws pixels to the framebuffer.

