Emwin Touch Calibration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Emwin Touch Calibration

1,735 Views
anujtanksali
Contributor II

Am using iMXRT 1064 device with touch screen LCD and Emwin graphical library v5.50

Am using analog touch screen driver and using function GUI_TOUCH_Calibrate to calibrate the touch.

for compilation using MCUXPresso 11.1 but am getting a compiler error for the function call GUI_TOUCH_Calibrate

"undefined reference to `GUI_TOUCH_Calibrate"

pastedImage_1.png

my gui.h contains the prototype definition for GUI_TOUCH_Calibrate.

pastedImage_3.png

if any other touch function is used such as GUI_TOUCH_EnableCalibration it compiles successfully so emwin header includes for my project seems to be correct.

Are analog touch screen driver functions supported in the emwin version 5.50

is there any configuration macro which needs to be enabled please let me know.

I compiled the same on evkmimxrt1064_emwin_gui_demo sample project from SDK and observing the same error.

Please let me know as this is critical to our project.

Thanks

Regards,

Anuj

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

1,705 Views
jeremyzhou
NXP Employee
NXP Employee

Hi  Anuj Tanksali,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) Is there any configuration macro which needs to be enabled please let me know.
-- To provide the fastest possible support, I'd highly recommend you to refer to the attachment: emWin user guide.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

1,597 Views
hfuhruhurr
Contributor III

Dear Support-Member,

instead of bluntly directing the poster to the manual though he cleary pointed out what may be the problem, what about doing your homework?

Using the nm tool on the three libraries 5.50, 6.10, 6.14 (the libemWin_M3.a file) yields:

5.50 and 6.10 do not contain the specified function.

The GUI_TOUCH_DriverAnalog module is "empty". The libs do also not contain the GUI_TOUCH_Exec function (which is needed according to the manual).

6.14 again contains these functions.

Furthermore, 6.14 has obviously turned off the debouncing of the touch input.

I needed to circumvent that by using timers in the dialog code which process the buttons which get activated from time to time when there noise on the touch panel input.

And: in my case, when I use PROGBAR_SetText(), in about 30%, the text is not taken over by the progbar.

All this is gone when I revert back to 5.38.(where I will stay)

Regards,

Rainer

P.S. for your reference excerpts of the output from nm for version 5.5

GUI_TOUCH_DriverAnalog.o:
00000000 T GUI_TOUCH_DriverAnalog_C

LCD_GetColorIndex.o:

and for version 6.14

GUI_TOUCH_DriverAnalog.o:
00000000 b _OrientationLog
00000000 b _xPhys
00000000 b _yPhys
U abs
00000000 b axRef.9466
00000000 b axSample.9468
00000000 b ayRef.9467
00000000 b aySample.9469
U GUI_pContext
U GUI_TOUCH_CalcCoefficients
00000000 T GUI_TOUCH_Calibrate
U GUI_TOUCH_CalibratePoint
00000000 T GUI_TOUCH_Exec
U GUI_TOUCH_GetLayer
00000000 T GUI_TOUCH_GetxPhys
00000000 T GUI_TOUCH_GetyPhys
00000000 T GUI_TOUCH_SetOrientation
U GUI_TOUCH_StoreStateEx
U GUI_TOUCH_X_ActivateX
U GUI_TOUCH_X_ActivateY
U GUI_TOUCH_X_MeasureX
U GUI_TOUCH_X_MeasureY
00000000 b IsPressed.9480
U LCD_GetXSizeEx
U LCD_GetYSizeEx
00000000 b Mask.9465
00000000 b ReadState.9479
00000000 d xLast.9483
00000000 d yLast.9484

LCD_GetColorIndex.o:

0 Kudos
Reply