lvgl run error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

lvgl run error

2,207件の閲覧回数
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 返答(返信)

2,188件の閲覧回数
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 件の賞賛
返信

2,180件の閲覧回数
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 件の賞賛
返信

2,175件の閲覧回数
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 件の賞賛
返信

2,111件の閲覧回数
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 件の賞賛
返信