How to integrate LVGL with FreeRTOS on STM32N6570-DK?

Hi everyone,

I am working with the STM32N6570-DK board and would like to integrate LVGL with FreeRTOS.

Could anyone guide me on the correct approach to run LVGL on top of FreeRTOS for this platform? Specifically, I am looking for:

  • Where and how to integrate LVGL within the STM32N6 project structure

  • Recommended task structure for LVGL

  • How to handle the tick interface (lv_tick_inc)

  • How to write or adapt lv_port_disp.c for STM32N6

  • Any important configuration settings or best practices

If anyone has experience with a similar STM32N6 setup, your suggestions would be very helpful.

Thanks!

This question is very LVGL specific and therefore, I’d recommend to reach out to LVGL maintainers.

In my projects, usually rp2040/rp2350 based, it’s fairly simple. 1) clone lvgl into my project folder 2) in CMakeLists: add_subdirectory(lvgl) and add lvgl to the target_link_libraries 3) #include “lvgl.h” in my project then just follow the standard procedures for initializing lvgl and connecting it to whatever screen I’m using. FreeRTOS or not, that works. The only special thing with FreeRTOS and LVGL I do is to make a mutex for accessing LVGL functions since LVGL is not multi-thread safe.

Michael