I am trying to integrate LVGL in STM32 discovery board at https://www.st.com/en/evaluation-tools/stm32u5g9j-dk1.html . I commented its touch gfx ui code initialization in main.c file which was working fine and displaying , now added LVGL code , but LVGL code is not showing UI on display . The display is not turning on for new LVGL code I integrated . Can you please look our code uploaded at github GitHub - rohit-trustedwear/stm32dk1-code and guide us on what I missed here. I have uploaded entire project at github as i am not sure where the problem lies and which code to share to look at .
Primary use rtos to inc tick is waste of sources. Place lv_tick_inc(1) into user part HAL_TIM_PeriodElapsedCallback and remove task. Next trouble is lvhandler in rtos task maybe memory resource here make trouble and read lvgl thread safety info…
Secondary check in debuger if your disp_flush_complete is real called.
Too seems backlight PWM isnt activated check touchgfx target HAL…
HAL_TIM_PWM_Start(&htim8, TIM_CHANNEL_2);
...
I made those changes as you suggested and backlight is glowing now but still not getting call to disp_flush_complete and nothing is getting displayed. I updated the new code in gihub at GitHub - rohit-trustedwear/stm32dk1-code .
lv_timer_handler()
is master func in lvgl must be called optimum every 5 ms. Normal placed inside main while or GUI RTOS task while loop.
Thanks so far . Its displaying now after adding lv_timer_handler in seperate rtos thread .
But UI is coming as different from original with white background and with grey text box. I have uploaded latest code in github with your suggested fix . What is the problem here . ?
Default config display is RGB888 for TGFX, you config LVGL to RGB565 …
Thanks Marian . Its working perfect now . Uploaded updated code to github .