My environment:
MIMXRT1170-EVKB + RaspberryPi Touch display + GUI guider
When I created timer function for Meter widget. Also, I put Digital Clock widget on same screen. Then the following problems occurred.
1. Sometimes entered into BusFault_Handler() during operation on touch panel.
2. Sometimes a text of label on another screen was replaced into another text which were like as digital clock, i.e. changing number from second to second.
My source code for timer setting was as follows.
- static void myscreen_event_handler (lv_event_t *e)
{
lv_event_code_t code = lv_event_get_code(e);
switch (code) {
case LV_EVENT_SCREEN_LOADED:
{
task_meter = lv_timer_create(meter_timer_cb, 100, &guider_ui);
break;
}
case LV_EVENT_SCREEN_UNLOAD_START:
{
lv_timer_del(task_meter);
break;
}
default:
break;
}
}
I'd like to know why I got the issues above, and whether my code has problem or need to write more source code.