I’m Having issue connecting a VL53L5CX sensor over i2c to the Apalis IMX8QM on the Ixora carrier board.
root@apalis-imx8-14903975:~# uname -a
Linux apalis-imx8-14903975 5.15.129-6.4.0+git.67c3153d20ff #1 SMP PREEMPT Wed Sep 27 12:30:36 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
I’m using Pins 5/6 for connecting the sensor, however the address appears wrong when using i2cdetect.
The address should be 0x52, however it appears at 29 in i2c detect.
Heres the following steps I used to check the issue:
root@apalis-imx8-14903975:~# ls -l /dev/apalis-i2c*
lrwxrwxrwx 1 root root 5 Jan 24 16:30 /dev/apalis-i2c-on-module -> i2c-3
lrwxrwxrwx 1 root root 5 Jan 24 16:30 /dev/apalis-i2c1 -> i2c-4
lrwxrwxrwx 1 root root 5 Jan 24 16:30 /dev/apalis-i2c3 -> i2c-5
Plugged In:
root@apalis-imx8-14903975:~# i2cdetect 4
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-4.
I will probe address range 0x08-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Unplugged:
root@apalis-imx8-14903975:~# i2cdetect 4
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-4.
I will probe address range 0x08-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I know the i2c address is set to 0x52 as I’m using it on other devices using this address.
Any steps to rectify the issue would be very helpful, as I’m building out an application using this sensor.
Thank you
William