about Timer function and Digital Clock widget

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

about Timer function and Digital Clock widget

487件の閲覧回数
Emi_Arai
Contributor I

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.

0 件の賞賛
返信
1 返信

460件の閲覧回数
Sam_Gao
NXP Employee
NXP Employee

Hi,

1.  BusFault_Handler() during operation on touch panel.

--> BusFault typically indicates an error during a memory access, such as:

  • Accessing an invalid memory address.
  • Accessing a memory region with incorrect permissions.
  • Unaligned memory access.

Please refer to above comments to check your code step by step.

2. Label Text Being Replaced, this issue suggests that there might be a problem with how the GUI elements are managed and updated.

B.R,

Sam

0 件の賞賛
返信