Skip to content
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

fix(esp_lvgl_port): Init LVGL in lvgl_port_init() call #468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tore-espressif
Copy link
Collaborator

Previously, we initialized LVGL in the new LVGL handling task. If lvgl_port_init() was called from high priority task, it could return with uninitialized LVGL.

Closes #455

@tore-espressif tore-espressif requested a review from espzav January 3, 2025 08:49
@tore-espressif tore-espressif self-assigned this Jan 3, 2025
@espzav
Copy link
Collaborator

espzav commented Jan 3, 2025

@tore-espressif This is not good fix. There is reason, why init is called from LVGL port task. It should be in the same task like lv_timer_handler.

@tore-espressif tore-espressif force-pushed the fix/lvgl_port_priority_bug branch from 9fdbc3a to 75a14a9 Compare January 9, 2025 15:37
@tore-espressif
Copy link
Collaborator Author

@tore-espressif This is not good fix. There is reason, why init is called from LVGL port task. It should be in the same task like lv_timer_handler.

Fixed by FreeRTOS task notifications

Previously, we initialized LVGL in the new LVGL handling task.
If lvgl_port_init() was called from high priority task, it could
return with uninitialized LVGL.

Closes #455
@tore-espressif tore-espressif force-pushed the fix/lvgl_port_priority_bug branch from 75a14a9 to f536943 Compare January 9, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential Exception Due to Task Priority in esp_lvgl_port with LVGL9 (BSP-596)
2 participants