2023-11-13 04:23 PM
MCU: STM32H725
FLASH: Internal SDRAM:
External The driver used is the one used in H735-DK.
I am experiencing an issue where some images (pixels) are not displayed correctly on the LCD and I am trying to debug it.
I have two questions:
How to verify if data has been correctly stored in the framebuffer (0x90000000)?
I would like to know the data path from the framebuffer through TouchGFX to LTDC.
Solved! Go to Solution.
2023-11-14 05:15 AM
Hello @jung ,
The method you're currently using for debugging is correct. The reason for not seeing the Text widget in the framebuffer might be because of pausing while writing to the buffer (as you mentioned yourself). To avoid this situation, try to put a break point before the function beginFrame in TouchGFXGeneratedHAL.cpp or after endFrame() in the same file. At those points we know the writing is done, and the framebuffer is intact.
For your second question, there is no direct path from TouchGFX to LTDC, TouchGFX fills the framebuffer and then sends a pointer to the framebuffer to LTDC to read the data from, so you just need to evaluate the data in the framebuffer.
I hope this helps, don't hesitate to ask more questions
2023-11-14 05:15 AM
Hello @jung ,
The method you're currently using for debugging is correct. The reason for not seeing the Text widget in the framebuffer might be because of pausing while writing to the buffer (as you mentioned yourself). To avoid this situation, try to put a break point before the function beginFrame in TouchGFXGeneratedHAL.cpp or after endFrame() in the same file. At those points we know the writing is done, and the framebuffer is intact.
For your second question, there is no direct path from TouchGFX to LTDC, TouchGFX fills the framebuffer and then sends a pointer to the framebuffer to LTDC to read the data from, so you just need to evaluate the data in the framebuffer.
I hope this helps, don't hesitate to ask more questions