<?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>MCX MicrocontrollersのトピックGUI Guider (LVGL v9 simulator) FreeMASTER binding: Meter with Image Needle disappears  GG_METER h</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/GUI-Guider-LVGL-v9-simulator-FreeMASTER-binding-Meter-with-Image/m-p/2267842#M4553</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;I’d like to share an issue and workaround for GUI Guider + LVGL v9 simulator with FreeMASTER binding.&lt;/P&gt;&lt;P&gt;Environment: GUI Guider 9.2 / 1.10.0 GA, LVGL v9 simulator (lvgl-simulator or lv_web_emscripten),&lt;BR /&gt;FreeMASTER JSON-RPC WebSocket (ws://localhost:41000), Windows 10/11.&lt;/P&gt;&lt;P&gt;Problem: When a FreeMASTER variable is bound to a Meter/Scale widget using an Image Needle,&lt;BR /&gt;the needle disappears or does not update correctly. The same variable bound to a Label updates&lt;BR /&gt;normally (e.g., 40–60), so the incoming value is valid.&lt;/P&gt;&lt;P&gt;Workaround/Fix: Patch the simulator code (or the template) here:&lt;BR /&gt;C:\nxp\GUI-Guider-1.10.0-GA\environment\template\project\v9\lvgl-simulator\gg_external_data\freemaster\freemaster_client.c&lt;/P&gt;&lt;P&gt;Update the GG_METER case to safely handle image needles vs line needles (and add NULL guards):&lt;/P&gt;&lt;P&gt;case GG_METER:&lt;BR /&gt;{&lt;BR /&gt;for (int i = 0; i &amp;lt; user_parm-&amp;gt;arrayLen; i++)&lt;BR /&gt;{&lt;BR /&gt;meter_needle *nd = (meter_needle *)user_parm-&amp;gt;childObjArray[i];&lt;BR /&gt;int v = atoi(dataArray[i]);&lt;/P&gt;&lt;P&gt;if (nd &amp;amp;&amp;amp; nd-&amp;gt;needle_obj)&lt;BR /&gt;{&lt;BR /&gt;if (lv_obj_check_type(nd-&amp;gt;needle_obj, &amp;amp;lv_image_class))&lt;BR /&gt;lv_scale_set_image_needle_value(user_parm-&amp;gt;parentObj, nd-&amp;gt;needle_obj, v);&lt;BR /&gt;else&lt;BR /&gt;lv_scale_set_line_needle_value(user_parm-&amp;gt;parentObj, nd-&amp;gt;needle_obj, nd-&amp;gt;needle_length, v);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;break;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Question: Is this a known issue? If not, could this fix be integrated into future GUI Guider releases/templates?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Dec 2025 00:59:22 GMT</pubDate>
    <dc:creator>ryan_hong_wtmec</dc:creator>
    <dc:date>2025-12-23T00:59:22Z</dc:date>
    <item>
      <title>GUI Guider (LVGL v9 simulator) FreeMASTER binding: Meter with Image Needle disappears  GG_METER h</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/GUI-Guider-LVGL-v9-simulator-FreeMASTER-binding-Meter-with-Image/m-p/2267842#M4553</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I’d like to share an issue and workaround for GUI Guider + LVGL v9 simulator with FreeMASTER binding.&lt;/P&gt;&lt;P&gt;Environment: GUI Guider 9.2 / 1.10.0 GA, LVGL v9 simulator (lvgl-simulator or lv_web_emscripten),&lt;BR /&gt;FreeMASTER JSON-RPC WebSocket (ws://localhost:41000), Windows 10/11.&lt;/P&gt;&lt;P&gt;Problem: When a FreeMASTER variable is bound to a Meter/Scale widget using an Image Needle,&lt;BR /&gt;the needle disappears or does not update correctly. The same variable bound to a Label updates&lt;BR /&gt;normally (e.g., 40–60), so the incoming value is valid.&lt;/P&gt;&lt;P&gt;Workaround/Fix: Patch the simulator code (or the template) here:&lt;BR /&gt;C:\nxp\GUI-Guider-1.10.0-GA\environment\template\project\v9\lvgl-simulator\gg_external_data\freemaster\freemaster_client.c&lt;/P&gt;&lt;P&gt;Update the GG_METER case to safely handle image needles vs line needles (and add NULL guards):&lt;/P&gt;&lt;P&gt;case GG_METER:&lt;BR /&gt;{&lt;BR /&gt;for (int i = 0; i &amp;lt; user_parm-&amp;gt;arrayLen; i++)&lt;BR /&gt;{&lt;BR /&gt;meter_needle *nd = (meter_needle *)user_parm-&amp;gt;childObjArray[i];&lt;BR /&gt;int v = atoi(dataArray[i]);&lt;/P&gt;&lt;P&gt;if (nd &amp;amp;&amp;amp; nd-&amp;gt;needle_obj)&lt;BR /&gt;{&lt;BR /&gt;if (lv_obj_check_type(nd-&amp;gt;needle_obj, &amp;amp;lv_image_class))&lt;BR /&gt;lv_scale_set_image_needle_value(user_parm-&amp;gt;parentObj, nd-&amp;gt;needle_obj, v);&lt;BR /&gt;else&lt;BR /&gt;lv_scale_set_line_needle_value(user_parm-&amp;gt;parentObj, nd-&amp;gt;needle_obj, nd-&amp;gt;needle_length, v);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;break;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Question: Is this a known issue? If not, could this fix be integrated into future GUI Guider releases/templates?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 00:59:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/GUI-Guider-LVGL-v9-simulator-FreeMASTER-binding-Meter-with-Image/m-p/2267842#M4553</guid>
      <dc:creator>ryan_hong_wtmec</dc:creator>
      <dc:date>2025-12-23T00:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Guider (LVGL v9 simulator) FreeMASTER binding: Meter with Image Needle disappears  GG_METER</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/GUI-Guider-LVGL-v9-simulator-FreeMASTER-binding-Meter-with-Image/m-p/2267914#M4554</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/258268"&gt;@ryan_hong_wtmec&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for sharing. I will report this to the internal team and wait for their further confirmation.&lt;/P&gt;
&lt;P&gt;Thank you for again your contribution in the NXP community.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 04:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/GUI-Guider-LVGL-v9-simulator-FreeMASTER-binding-Meter-with-Image/m-p/2267914#M4554</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2025-12-23T04:07:13Z</dc:date>
    </item>
  </channel>
</rss>

