-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LVGL drawing freezes on Sunton ESP32-S3 8048S050 board. #531
Comments
this is just a gut feeling, anyway: I'm using a similar board ( Sunton ESP32-8048S070) in code based on @sukesh-ak 's https://github.com/sukesh-ak/ESP32-TUX, and never had a lockup like you describe have a look at the lvgl_acquire/lvgl_release lock handling - my understanding is that you surround any lvgl code with lvgl_acquire/lvgl_release my fork is here |
increase the memory in the lvgl.conf file #define LV_MEM_SIZE (50* 1024U) |
@alexander-sorokin LVGL does not support multi-tasking. So you need to take care of it yourself like my code sample mentioned above. |
The issue was I am not calling lv_tick_inc(uint32_t tick_period). I followed this example, but it is for Arduino. There is configuration for automatic calling of this function. |
Environment ( 実行環境 )
Problem Description ( 問題の内容 )
While using LVGL, display freezes after drawing one or few first frames. I added logging to touch callback but it never shows in console output, while display flushing reports for first half a second. lv_timer_handler() is called each 30 milliseconds.
When I inserted and adopted code from LovyanGFX readme, it worked fine and showed animation.
I do not want to use Arduino library for ESP32.
Expected Behavior ( 期待される動作 )
See changes on screen from LVGL animation or touch responses.
Actual Behavior ( 実際の動作 )
Display freezes while rendering LVGL.
Console output
Steps to reproduce ( 再現のための前提条件 )
git clone --recursive https://github.com/alexander-sorokin/lovyangfx-esp-lvgl.git
Code to reproduce this issue ( 再現させるためのコード )
I created sample project which causes the issue.
The text was updated successfully, but these errors were encountered: