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);
}
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
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.
Are you using freeRTOS or baremetal on your board? Can you private your board type or more environment info?
Best regards
Liubin
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 .