No, only oled_task operates with LVGL.ESP_Sprite wrote: ↑Fri Apr 12, 2024 5:48 amHm, no clue. Any other tasks doing anything with lvgl? Wondering if you may have some sort of concurrency issue.
The only reason I can image is, while oled_task updating LVGL label, gpio_task become ready, and since gpio_task has a higher priority (10), FreeRTOS pauses oled_task and starts gpio_task. That's may causes two tasks accessing one variable at the same time, since they are pointed to the same memory. But in my understanding, as the task is running infinitely, the screen shouldn't be stuck, label showed on screen should become normal in the next task run, and shouldn't trigger TWDT.