2025-10-01 1:24 AM
After updating TouchGFX from 4.24.1 to 4.26.0, the Stride setting in "X-CUBE-TOUCHGFX"->"TouchGFX Generator" is readonly (grayed out). I need to set it to the value 832.
The generated code uses the value 800, even if I modify the value in the project.ioc file manually.
When I change the Stride value in TouchGFXHAL.cpp and in TouchGFXGeneratedHAL.cpp (at call of setFrameBufferSize()) manually, the display works perfectly.
I am using:
Any advise is very welcome. Thank you!
Solved! Go to Solution.
2025-10-03 2:44 AM
Hello @gerthmar,
After checking, it appears the configuration method was updated. The stride value can still be modified through the LTDC panel inside the Layer Settings tab, under Frame Buffer Configuration, by changing Layer 0 - Color Frame Buffer Line Length (Image Width). The previous method in TouchGFX 4.25.0 was incorrect, as it could cause issues and user frustration due to potential misconfigurations. The new approach is an improvement and more accurate.
Best regards,
2025-10-01 8:40 AM
Hello @gerthmar, and welcome to ST Community!
I have escalated the issue to the relevant team for resolution. It is being tracked internally under ticket number 218772.
Best regards,
2025-10-03 2:44 AM
Hello @gerthmar,
After checking, it appears the configuration method was updated. The stride value can still be modified through the LTDC panel inside the Layer Settings tab, under Frame Buffer Configuration, by changing Layer 0 - Color Frame Buffer Line Length (Image Width). The previous method in TouchGFX 4.25.0 was incorrect, as it could cause issues and user frustration due to potential misconfigurations. The new approach is an improvement and more accurate.
Best regards,
2025-10-03 11:41 AM
Thank you @STackPointer64 . That solves the problem!
Best regards!