Hi everyone,
I am working on the STM32N6570-DK board and trying to run LVGL v9.5 with FreeRTOS, but I am facing issues integrating both properly.
What I have done so far:
- Enabled FreeRTOS (CMSIS-RTOS v2)
- Integrated LVGL v9.5 into the project
- Initialized display and LVGL successfully (basic UI works without RTOS)
Issue:
- When I enable FreeRTOS and run LVGL inside a task, and display behaves unexpectedly
- It shows garbage pixels on display
- Suspecting issues with:
lv_timer_handler()execution timing- Thread safety / mutex handling
- Tick increment (
lv_tick_inc) integration
What I tried:
- Running
lv_timer_handler()in a dedicated task with delay - Using mutex (
xSemaphore) for LVGL calls - Checking stack size and task priority
Questions:
- What is the correct way to integrate LVGL 9.5 with FreeRTOS?
- How should
lv_timer_handler()andlv_tick_inc()be handled in RTOS? - Is there any official or recommended template for STM32N6 series?
- Are there any specific configurations required for STM32N6570-DK?
Additional Info:
- MCU: STM32N657
- LVGL Version: 9.5
- RTOS: FreeRTOS (CMSIS v2)
Any guidance or working example would be really helpful.
Thanks in advance!