<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Graphics中的主题 about Timer function and Digital Clock widget</title>
    <link>https://community.nxp.com/t5/i-MX-Graphics/about-Timer-function-and-Digital-Clock-widget/m-p/2019582#M698</link>
    <description>&lt;P&gt;My environment:&lt;BR /&gt;MIMXRT1170-EVKB + RaspberryPi Touch display + GUI guider&lt;/P&gt;&lt;P&gt;When I created timer function for Meter widget. Also, I put Digital Clock widget on same screen. Then the following problems occurred.&lt;BR /&gt;1. Sometimes entered into BusFault_Handler() during operation on touch panel.&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My source code for timer setting was as follows.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;static void myscreen_event_handler (lv_event_t *e)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lv_event_code_t code = lv_event_get_code(e);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; switch (code) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; case LV_EVENT_SCREEN_LOADED:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; task_meter = lv_timer_create(meter_timer_cb, 100, &amp;amp;guider_ui);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; case LV_EVENT_SCREEN_UNLOAD_START:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lv_timer_del(task_meter);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; default:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'd like to know why I got the issues above, and whether my code has problem or need to write more source code.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2024 07:06:39 GMT</pubDate>
    <dc:creator>Emi_Arai</dc:creator>
    <dc:date>2024-12-26T07:06:39Z</dc:date>
    <item>
      <title>about Timer function and Digital Clock widget</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/about-Timer-function-and-Digital-Clock-widget/m-p/2019582#M698</link>
      <description>&lt;P&gt;My environment:&lt;BR /&gt;MIMXRT1170-EVKB + RaspberryPi Touch display + GUI guider&lt;/P&gt;&lt;P&gt;When I created timer function for Meter widget. Also, I put Digital Clock widget on same screen. Then the following problems occurred.&lt;BR /&gt;1. Sometimes entered into BusFault_Handler() during operation on touch panel.&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My source code for timer setting was as follows.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;static void myscreen_event_handler (lv_event_t *e)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lv_event_code_t code = lv_event_get_code(e);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; switch (code) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; case LV_EVENT_SCREEN_LOADED:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; task_meter = lv_timer_create(meter_timer_cb, 100, &amp;amp;guider_ui);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; case LV_EVENT_SCREEN_UNLOAD_START:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lv_timer_del(task_meter);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; default:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'd like to know why I got the issues above, and whether my code has problem or need to write more source code.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 07:06:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/about-Timer-function-and-Digital-Clock-widget/m-p/2019582#M698</guid>
      <dc:creator>Emi_Arai</dc:creator>
      <dc:date>2024-12-26T07:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: about Timer function and Digital Clock widget</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/about-Timer-function-and-Digital-Clock-widget/m-p/2019963#M699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;BusFault_Handler() during operation on touch panel.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--&amp;gt;&amp;nbsp;&lt;/SPAN&gt;BusFault&amp;nbsp;typically indicates an error during a memory access, such as:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Accessing an invalid memory address.&lt;/LI&gt;
&lt;LI&gt;Accessing a memory region with incorrect permissions.&lt;/LI&gt;
&lt;LI&gt;Unaligned memory access.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Please refer to above comments to check your code step by step.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Label Text Being Replaced, this issue suggests that there might be a problem with how the GUI elements are managed and updated.&lt;/P&gt;
&lt;P&gt;B.R,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 08:08:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/about-Timer-function-and-Digital-Clock-widget/m-p/2019963#M699</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2024-12-27T08:08:30Z</dc:date>
    </item>
  </channel>
</rss>

