lvgl run error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lvgl run error

1,910 Views
linda4185
Contributor II

when i used ’inf_set_speed‘  in main.  once per second

    it will run many times,then the system is not refreshed.  And Keys don't respond.

maybe memory leak? what should i do?what is the correct way?

char speed_str[5];

void inf_set_speed(u16 num)
{
    sprintf(speed_str,"%d",num);
    lv_label_set_text_static(inf.inf_screen_inf_label_speed,speed_str);
}

0 Kudos
Reply
4 Replies

1,891 Views
LiubinGong
NXP Employee
NXP Employee

Hi @linda4185 

        Can you share your project or more complete code?  Your expectation is: to update the label text every second, all right? 

Thanks

Liubin

 

0 Kudos
Reply

1,883 Views
linda4185
Contributor II

yes,

  but I build a new project in a EVK board . it has no error.so maybe my board has some hard error,or GUI guider run error.

   about gui guider except code, I find many questions in the internet,many engineers feedback problems about controls layer error ,it makes code run error.

at last .I will  share my experience until I solve it.

thinks.

0 Kudos
Reply

1,878 Views
LiubinGong
NXP Employee
NXP Employee

Are you using freeRTOS or baremetal on your board? Can you private your board type or more environment info? 

Best regards

Liubin

0 Kudos
Reply

1,814 Views
linda4185
Contributor II

thinks

I have solved my problem.I use spi as normal mode.And when I wait spi send end. Some errors occurred while reading the spi status.  so this is resolved. And I will use DMA in the end.

I've had fun using gui guider now .

0 Kudos
Reply