164 views
in Embedded Wizard Studio by
Hello EW Team,

We are working on a project without touchscreen.

But still there are Core::SimpleTouchHandler and Core::SlideTouchHandler appeared in Embedded Wizard Code Generation Report,which cost about 13KB and we are running out of ROM.

So we would like to know, is there any way to remove them? Thanks

1 Answer

0 votes
by
 
Best answer

Hello,

I suppose, the Touch Handler is taken in account because of existing references to it. These can be found e.g. in a Push Button, or any other interactive widget. If there is no reference to a Touch Handler (or more generally to a project member), the project member is eliminated and no code is generated for it.

If you are using the regular Widgets, it is not possible to remove the Touch Handler without deeply redesigning the widgets. However, the widgets use only the Simple Touch Handler. In your question you have mentioned the Slide Touch Handler. This indicates that the handler is found somewhere in your own project implementation. Search your project for SlideTouchHandler.

... appeared in Embedded Wizard Code Generation Report,which cost about 13KB and we are running out of ROM.

Please note, that the values in Generation Report are roughly estimated without taking in account the C compiler optimization. I would recommend to check the MAP file resulting from the linker how much ROM do the handler really occupy. I suppose it is less than 13 kb. Especially the Simple Touch Handler found in Widgets is very simple and lightweight. The Slide Touch Handler is more complex, but it does not belong to widgets, so I hope you can find where the Slide Touch Handler is used in your project and remove it.

I hope it helps you further.

Best regards

Paul Banach

by
Thank you very much!

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...