I2C Touch panel not working in lvgl_guider example with custom display

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

I2C Touch panel not working in lvgl_guider example with custom display

Jump to solution
1,059 Views
patriciocohen
Contributor IV

Hi,

I'm having trouble making an external display touch controller work with my custom IMXRT1062 Board. (The display datasheet is attached). The video part is working perfectly. The only problem is the touch interface via I2C that is not responding.

Via the debugger I got to the LPI2C_MasterTransferBlocking function. Then delving deeper I discovered I that I was getting always a kStatus_LPI2C_ArbitrationLost from LPI2C_MasterCheckAndClearError function.

Using an oscilloscope it can be seen that after the start condition the IMXRT returns both lines to high. This happens when the touch panel I2C lines are connected as well as disconnected. Please see picture below.

patriciocohen_0-1698277281421.png

Can anyone please help me?

Thank you

Patricio

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,048 Views
patriciocohen
Contributor IV

I finally solved the problem.

It was that the SION (SOFTWARE INPUT ON) bits for SCL and SDA where not set. Once set, everything works.

I got the answer from here: https://community.nxp.com/t5/i-MX-RT/i-mxRT1021-I2C-slave-address/td-p/1220091

BH

Best regards, 

Patricio

 

View solution in original post

0 Kudos
Reply
1 Reply
1,049 Views
patriciocohen
Contributor IV

I finally solved the problem.

It was that the SION (SOFTWARE INPUT ON) bits for SCL and SDA where not set. Once set, everything works.

I got the answer from here: https://community.nxp.com/t5/i-MX-RT/i-mxRT1021-I2C-slave-address/td-p/1220091

BH

Best regards, 

Patricio

 

0 Kudos
Reply