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): Make sure LVGL is initialize at the end of lvgl_port_init() call #468

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

tore-espressif
Copy link
Collaborator

@tore-espressif tore-espressif commented Jan 3, 2025

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
Closes #475

@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

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

@espzav espzav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tore-espressif Thank you for this fix. LGTM

@tore-espressif tore-espressif force-pushed the fix/lvgl_port_priority_bug branch from f536943 to 91b65ff Compare January 10, 2025 15:41
Copy link

github-actions bot commented Jan 10, 2025

Test Results

 15 files  15 suites   5m 32s ⏱️
 45 tests 22 ✅  23 💤 0 ❌
330 runs  22 ✅ 308 💤 0 ❌

Results for commit 2877ed4.

♻️ This comment has been updated with latest results.

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 91b65ff to 2877ed4 Compare January 16, 2025 07:13
@tore-espressif tore-espressif changed the title fix(esp_lvgl_port): Init LVGL in lvgl_port_init() call fix(esp_lvgl_port): Make sure LVGL is initialize at the end of lvgl_port_init() call Jan 16, 2025
@tore-espressif tore-espressif merged commit ca23afe into master Jan 16, 2025
35 checks passed
@tore-espressif tore-espressif deleted the fix/lvgl_port_priority_bug branch January 16, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants