2025-03-05 11:10 PM
Hello,
In previous touchgfx releases, we all know that partial framebuffer is limited to 20 lines. Now with touchgfx 4.25, is it possible to increase it? If yes, how can I do it?
In addition, I tried to increase "Block Size" in .ioc file, however it still sends only 20 lines. It does not use remaining block size. I need a clear example.
Thanks!
Solved! Go to Solution.
2025-03-06 12:39 AM
Hi Farukisiker
A clear example shall you get:
As you know the default max block height is 20 rows.
I created this application:
I use an interaction to redraw the white box in every other tick. The white box is 20x200 pixels.
With the default configuration we get the white box transmitted in 10 blocks:
We see the Display /chip select is low 10 times with a pulse width of 212 us.
We can configure the maximum block height to 40 by inserting a line in the application to call the function
void HAL::setMaxBlockLines(int16_t blockLines);
I suggest doing this in TouchGFXHAL::initialize():
With this we get this recording:
We get 5 blocks (200/40) with the doubled pulse width.
I hope this helps.
2025-03-06 12:39 AM
Hi Farukisiker
A clear example shall you get:
As you know the default max block height is 20 rows.
I created this application:
I use an interaction to redraw the white box in every other tick. The white box is 20x200 pixels.
With the default configuration we get the white box transmitted in 10 blocks:
We see the Display /chip select is low 10 times with a pulse width of 212 us.
We can configure the maximum block height to 40 by inserting a line in the application to call the function
void HAL::setMaxBlockLines(int16_t blockLines);
I suggest doing this in TouchGFXHAL::initialize():
With this we get this recording:
We get 5 blocks (200/40) with the doubled pulse width.
I hope this helps.
2025-03-06 1:03 AM
Thank you for your kind explanation. It helped me a lot.
I thought that ST added this option in .ioc file. But anyway, it solved my problem.
I am using a custom system. So I added setMaxBlocklines as shown image.