Calling lv_chart_set_next_value() then the programm hangs, why?


I switched from LVGL version 8.3.2 to 8.3.8.

Since then, I have an issue with the lv_chart widget.
The program seems to get stuck in a while loop when calling the following function.
The function call only works during the initialization of the lv_chart widget.
Afterward, when I call this function in the main program, the program hangs in the while loop see screenshot below.

What am I doing wrong? I don’t understand this…

lv_chart_set_next_value(ui.screen_chart_1, screen_chart_1_1, hallValue1);


Thank you

Hi @epikao ,

This means the series variable screen_chart_1_1 has a value of NULL.

I would suggest checking to make sure the series screen_chart_1_1 was created and initialised correctly.

Kind Regards,