GUI Guider (LVGL v9 simulator) FreeMASTER binding: Meter with Image Needle disappears GG_METER h

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

GUI Guider (LVGL v9 simulator) FreeMASTER binding: Meter with Image Needle disappears GG_METER h

32件の閲覧回数
ryan_hong_wtmec
Fresh Out Contributor

Hi all,
I’d like to share an issue and workaround for GUI Guider + LVGL v9 simulator with FreeMASTER binding.

Environment: GUI Guider 9.2 / 1.10.0 GA, LVGL v9 simulator (lvgl-simulator or lv_web_emscripten),
FreeMASTER JSON-RPC WebSocket (ws://localhost:41000), Windows 10/11.

Problem: When a FreeMASTER variable is bound to a Meter/Scale widget using an Image Needle,
the needle disappears or does not update correctly. The same variable bound to a Label updates
normally (e.g., 40–60), so the incoming value is valid.

Workaround/Fix: Patch the simulator code (or the template) here:
C:\nxp\GUI-Guider-1.10.0-GA\environment\template\project\v9\lvgl-simulator\gg_external_data\freemaster\freemaster_client.c

Update the GG_METER case to safely handle image needles vs line needles (and add NULL guards):

case GG_METER:
{
for (int i = 0; i < user_parm->arrayLen; i++)
{
meter_needle *nd = (meter_needle *)user_parm->childObjArray[i];
int v = atoi(dataArray[i]);

if (nd && nd->needle_obj)
{
if (lv_obj_check_type(nd->needle_obj, &lv_image_class))
lv_scale_set_image_needle_value(user_parm->parentObj, nd->needle_obj, v);
else
lv_scale_set_line_needle_value(user_parm->parentObj, nd->needle_obj, nd->needle_length, v);
}
}
break;
}


Question: Is this a known issue? If not, could this fix be integrated into future GUI Guider releases/templates?

Thanks.

0 件の賞賛
返信
1 返信

7件の閲覧回数
Celeste_Liu
NXP Employee
NXP Employee

Hello @ryan_hong_wtmec ,

Thank you for sharing. I will report this to the internal team and wait for their further confirmation.

Thank you for again your contribution in the NXP community.

BR

Celeste

0 件の賞賛
返信