Lv_task can not be called on time

Hi @kisvegabor , @embeddedt and ALL

Description

I create a lv_task to handler a task( for ex, period = 500ms ).
But if GUI processing is too long in LVGL, this lv_task callback will also be late.
For example, when do fade animation 2s between two screen, lv_task callback can not be called until that animation finished.

What LVGL version are you using?

LVGL 7.10.1

What do you want to achieve?

Can lv_task run like a FreeRTOS task?
It is a task that always runs on time, or interrupts other low-priority tasks.

If impossible, is there a way to lv_task call on time in any situation?
※ I can not use FreeRTOS task for this case because of some reason.

Thanks and Best regards!

lv_task is intentionally that simple. It can really just call some functions after each other and NOT interrupt one task with on other.

Maybe you need a timer interrupt instead. But be sure not to call LVGL related functions while lv_task_handler in working.

Thanks for your reply soon.