2022-05-23 12:26 AM
Hi I am using TouchGFX version of 4.19.1 and I am working without FreeRTOS.
I am calling MX_TouchGFX_Process() in the main while(1) loop and calling HAL::getInstance()->vSync(), OSWrappers::signalVSync() in the display TE interrupt line.
Whenever I call MX_TouchGFX_Process() in the main while(1) loop, it is taking 50 ms to come out from the MX_TouchGFX_Process() function. Because of this 50 ms delay display update is sluggish.
Could you please help me to solve this issue.
Thanks and Regards,
Bala
2022-05-23 05:00 AM
Hello Bala,
That's a strange behavior indeed. As far as I know, there's no delay in this function.
Can you give more information about your configuration please ?
/Osman
2022-05-25 04:34 AM
Hi Osman,
Other observations:
This additional 15 ms between OS and non OS can add this sluggish behaviour.
Why is that extra time taken in case of Non OS?
Thanks and Regards,
Bala
2022-05-25 04:37 AM
Hi Osman,
Also could you please let me know whether can we call MX_TouchGFX_Process() inside Timer Interrupt.
Whenever I tried to call MX_TouchGFX_Process() inside Timer Interrupt, system is getting stuck inside backPorchExited().
Thanks and Regards,
Bala
2022-05-30 01:58 AM
Hello Balavardhi,
I'm not sure if this will help but can you try the optimization option with CubeIDE ?
(select "Optimize most -O3" for both GCC and G++ compiler on Debug and Release configuration)
/Osman