my code is
int main()
{
…
while(1) {
lv_demo_widgets();
lv_timer_handler();
usleep(5000);
}
…
}
when run , the memory refresh time is equel to the LV_MEM_SIZE/sizeof(screen),and then
segmentation fault
what happened? someone know ?
my code is
int main()
{
…
while(1) {
lv_demo_widgets();
lv_timer_handler();
usleep(5000);
}
…
}
when run , the memory refresh time is equel to the LV_MEM_SIZE/sizeof(screen),and then
segmentation fault
what happened? someone know ?
Hi @Jorsen ,
I think you probably don’t want to call lv_demo_widgets() in the loop as this will very quickly consume all of your available memory by generating multiple copies of the entire GUI, may be try this:
int main()
{
lv_demo_widgets();
while(1) {
lv_timer_handler();
usleep(5000);
}
}
I hope that helps…
Kind Regards,
Pete
Thank you