You dont show all, but primary try change
while(1) {
lv_task_handler();
HAL_Delay(5);
if(update) update_Realtime();
seems you update_Realtime() use lv functions to show somethink. This is bad choice …
if (htim->Instance == TIM5) update = true;
You dont show all, but primary try change
while(1) {
lv_task_handler();
HAL_Delay(5);
if(update) update_Realtime();
seems you update_Realtime() use lv functions to show somethink. This is bad choice …
if (htim->Instance == TIM5) update = true;