Skip navigation

This Question is Answered (go to answer)

2 "helpful" answers available (4 pts)
94,083 Views 9 Replies Last post: Mar 18, 2012 10:05 PM by xianfeng.zeng RSS
xianfeng.zeng Active 47 posts since
Oct 18, 2011
Currently Being Moderated

Feb 14, 2012 11:26 PM

Plugin cannot work well

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.

phil_brumby Aficionado 101 posts since
Apr 20, 2010
Currently Being Moderated
Feb 16, 2012 3:40 AM in response to: xianfeng.zeng
Re: Plugin cannot work well

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.

phil_brumby Aficionado 101 posts since
Apr 20, 2010
Currently Being Moderated
Feb 17, 2012 2:44 AM in response to: xianfeng.zeng
Re: Plugin cannot work well

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.

Attachments:
phil_brumby Aficionado 101 posts since
Apr 20, 2010
Currently Being Moderated
Feb 22, 2012 2:28 AM in response to: xianfeng.zeng
Re: Plugin cannot work well

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.

phil_brumby Aficionado 101 posts since
Apr 20, 2010
Currently Being Moderated
Mar 12, 2012 8:53 AM in response to: xianfeng.zeng
Re: Plugin cannot work well

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).

 

comm1.jpg

 

When setting this property the plugin graph works correctly under Qemu I have verified.

 

Thanks,

Phil.

More Like This

  • Retrieving data ...

Bookmarked By (0)