lvgl run error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

lvgl run error

1,912 次查看
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 项奖励
回复
4 回复数

1,893 次查看
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 项奖励
回复

1,885 次查看
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 项奖励
回复

1,880 次查看
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 项奖励
回复

1,816 次查看
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 项奖励
回复