Touch is not working

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

Touch is not working

3,869 Views
vipuljain91
Contributor I

I am working on IMXRT1050-EVKB. I took am example code from SDK "EVKB-IMXRT1050-guix_washing_machine".

Touch is not working for me. Please help me what I need to modify 

 

Vipul

0 Kudos
Reply
15 Replies

3,716 Views
EmbeddedTech
Contributor III

Hi Diego,

Sorry I was referring to the old SDK version 2_10 which didn't have examples for gt911 driver. The latest sdk has got examples for this touch driver. I will let you know if its working for me after receiving the board.

Thanks.

3,695 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @EmbeddedTech 

Correct, latest SDK versions include the gt911 touch driver , and a macro for selecting the display that uses this driver. 

If you get issues with the default gt911 touch driver , please try to use the driver mod that I shared in the post. There are just some extra delays for initialization.

Let us know your results. 

Diego

3,841 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @vipuljain91 

Please make sure that your display matches with one of the two supported LCDs.

First recommendation is:

Open the display_support.h , located in the  board folder of the host project and ensure that your LCD panel is selected.

Setup for RK043FN66HS display

#define DEMO_PANEL_RK043FN02H  0 /* RK043FN02H-CT */

#define DEMO_PANEL_RK043FN66HS 1 /* RK043FN66HS-CTG */

 

/* @TEST_ANCHOR */

 

#ifndef DEMO_PANEL

#define DEMO_PANEL DEMO_PANEL_RK043FN66HS

#endif

 

Setup for RK043FN02H display

#define DEMO_PANEL_RK043FN02H  1 /* RK043FN02H-CT */

#define DEMO_PANEL_RK043FN66HS 0 /* RK043FN66HS-CTG */

 

/* @TEST_ANCHOR */

 

#ifndef DEMO_PANEL

#define DEMO_PANEL DEMO_PANEL_RK043FN02H

#endif

 

Second recommendation is: If using the  RK043FN66HS display,  try to use the attached file driver. It is basically the same touch panel driver from the SDK , just we added some extra delays.

If this does not works, let me know. 

 

All the best, 

Diego

0 Kudos
Reply

3,786 Views
EmbeddedTech
Contributor III

Hi,

Is there any example code in sdk for using this fsl_gt911 driver with the LCD using segger emwin?

Thanks.

0 Kudos
Reply

3,777 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @EmbeddedTech 

Did you had issues with the fsl_gt911 driver that comes already in the SDK 2.13 ?

@vipuljain91  could you confirm if the modified fsl_gt911 that I shared works for you?

Best regards,

Diego

 

0 Kudos
Reply

3,683 Views
vipuljain91
Contributor I

Hi, @diego_charles

Thanks for sharing updated files, but still touch is not working. I2C_ReceiveFunc is not working. 

 

0 Kudos
Reply

2,271 Views
EmbeddedTech
Contributor III

Hi @vipuljain91 , @diego_charles ,

I have the same problem with the I2C receive. The I2C status is always in busy. 

Did you manage to get over this problem?

Your help on this is highly appreciated.

Thanks.

 

0 Kudos
Reply

2,153 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @EmbeddedTech 

I have not seen this issues appearing again on RT106x EVKs.

Are you implementing your custom SW? If possible let me know more about your setup.

Thanks, 

Diego

0 Kudos
Reply

2,150 Views
EmbeddedTech
Contributor III

Hi @diego_charles,

Yes, I am using it in the custom hardware, the schematic is same as the eval board schematic for the touch and display. I got this working in one of the hardware previously, but the same code is not working with other board. I have used the same gt911 driver as in the sdk. What could the possible cause for the I2C to remain busy. I have used internal pull up of 22K. Is there anything else need to be taken care of.

Thanks.

0 Kudos
Reply

3,645 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @vipuljain91 

Thanks for letting me know!

Would you be able to test with the MCUXpresso IDE?

Have you selected the proper display in display_support.h? 

Diego

 

0 Kudos
Reply

3,601 Views
vipuljain91
Contributor I

Hi @diego_charles ,

I  have selected proper display.

I am working with IAR IDE 

0 Kudos
Reply

2,863 Views
EmbeddedTech
Contributor III

Hi @vipuljain91,

Did you manage to make the GT911 touch driver work with your board.

Thanks.

3,338 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @vipuljain91 

Thanks for letting me know! 

Two things:

1 Please try to test with the MCUXpresso IDE , just to have the same setup.

2 Share with me your generated axf/binary to run it on my side. 

If the I2C receive function is not working, is there any activity from the touch panel of the driver? 

Diego

0 Kudos
Reply

3,728 Views
EmbeddedTech
Contributor III

Hi Diego,

I have not checked the driver on my board yet as I will be receiving the custom board only next week. Before that I am trying to integrate the code and keep, so that I can test it on the board once I receive it.

If I am not wrong, in sdk all examples use ft5406 touch driver. I would like to know if there is any example code in sdk with gt911 touch driver so that I can refer how it is interfaced with the IIC driver and used in application.

Your help on this is highly appreciated.

Thanks.

0 Kudos
Reply

3,696 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @EmbeddedTech 

As far I know, since SDK v.2.11 support for gt911 touch driver  was added.

Diego

0 Kudos
Reply