Hi,
I try to use the plugin here: http://communities.mentor.com/mgcx/message/27682#27682 .
I run on Nucleus and IMX28. I have change the thread that can run on Nucleus in ifxui_plugin.c. But nothing appear on the board except two buttons.
Here is the information catched by printf() I add in head of every function, you can see the flow. Is there something wrong?
<IFXM_ifxuiplugin_CreateElement_demoPluginElement>:
[DEBUG] ../src/ifxui_plugin.c:574 <Plugin_Graph_Task_Entry>: (param=0x0)
[DEBUG] ../src/ifxui_plugin.c:729 <FillColorOnEngineBuffer>: (plugin_element=0x0, color=0xff)
[DEBUG] ../src/ifxui_plugin.c:754 <DrawHorizontalLine>: (plugin_element=0x0, row=32910, color=0x808080ff)
[DEBUG] ../src/ifxui_plugin.c:620 <Plugin_Graph_Task_Entry>: plugin_element->plugin_module->full_redraw=0
[DEBUG] ../src/ifxui_plugin.c:662 <Plugin_Graph_Task_Entry>: plugin_element->mode=0x0
[DEBUG] ../src/ifxui_plugin.c:694 <UpdateBuffer>: (plugin_element=0x130dad8, width=0x64, height=0x64)
[DEBUG] ../src/ifxui_plugin.c:710 <UpdateBuffer>: plugin_element->buffer=0x0
[DEBUG] ../src/ifxui_plugin.c:421 <IFXM_ifxuiplugin_ChangeElementMode_demoPluginElement>: (hModule=0x12cd344, hElement=0x130dad8, newMode=0x4, pContext=0xceb73c)
[DEBUG] ../src/ifxui_plugin.c:694 <UpdateBuffer>: (plugin_element=0x130dad8, width=0x64, height=0x64)
[DEBUG] ../src/ifxui_plugin.c:276 <IFXM_ifxuiplugin_ActivateElement_demoPluginElement>: (hModule=0x12cd344, hElement=0x130dad8)
[DEBUG] ../src/ifxui_plugin.c:372 <IFXM_ifxuiplugin_PaintElement_demoPluginElement>: (hModule=0x12cd344, hElement=0x130dad8)
[DEBUG] ../src/ifxui_plugin.c:548 <IFXM_ifxuiplugin_ExecuteLink_ButtonLink>: (hModule=0x12cd344, body=0x0)
And where can I get some detail documents and demo about Plugin Module?
Thanks.
Hi Xianfeng.zeng,
Are you evaluating Nucleus or are you an existing customer of Nucleus?
Also under what development enviroment are you using Nucleus? Is it with Edge or Codebench?
Thanks,
Phil.
Hi Phil,
I am an existing customer of Nucleus.
I use EDGE, ReadyStart for Nucleus.
Thanks.
Hi,
I have attached draft version of the Plugin Graph workshops for Nucleus Readystart. This not currently released on the resource center site but should be able to be used as a reference so you can see where any configuration errors may have occurred.
Thanks,
Phil.
Hi Phil,
I modify your attachment, and find that there is no effect on the EVK.
The attachment is my c file.
All debug information is :
[DEBUG] ../src/ifxui_plugin.c:93 <IFXM_ifxuiplugin_Initialize>: (hModuleId=0x40b4876c, phModule=0x40b48764)
[DEBUG] ../src/ifxui_plugin.c:149 <IFXM_ifxuiplugin_CreateElement_demoPluginElement>:
[DEBUG] ../src/ifxui_plugin.c:577 <Plugin_Graph_Task_Entry>: plugin_element->task_running=0x1
[DEBUG] ../src/ifxui_plugin.c:675 <UpdateBuffer>: (plugin_element=0x40ba8a74, width=0x0, height=0x0)
[DEBUG2] ../src/ifxui_plugin.c:692 <UpdateBuffer>: plugin_element->buffer=0x0
[DEBUG] ../src/ifxui_plugin.c:698 <UpdateBuffer>: plugin_element->buffer_height=0x0
And it can response the button event, just cannot see the Sin or Cos drawing.
Hi,
In the UI theme when you create the plugin element is the preview graphics for the graph seen in the Previewer? If not then there is a configuration problem in the theme, dod the plugin have an extent value for x & y?
Thanks,
Phil.
Hi Phil,
Sorry for the late reply. I can see preview graphics for the graph seen in the Previewer. Running on EVK I can see other components, just can not see the Plugin component.
Thanks.
Hi Phil,
I put my whole test project in attachment. Can you help me to find why Plugin Module cannot run on EVK?
(Screenshot is catched on QEMU, but problem is same on EVK.)
It's important to me.Thank you.
Hi,
Apologies for not getting back to you sooner.
I've had a look at your project and can see the problem. All Plugin elements must have the 'In All Layouts > Extent Hint' property set for X & Y in UI Express. This governs the size of the buffer that will be created to store the plugin data in by Inflexion (The other Extent property under 'In this layout' will tell Inflexion of any scaling/stretch that needs to be applied).
When setting this property the plugin graph works correctly under Qemu I have verified.
Thanks,
Phil.
Thank you very much.
