ADS1015 does not work with Jetson xavier AGX i2c

Hi.

I have a Jetson Nano and a Jetson Xavier AGX.
I am using ADS1015 to get analog data.
The ADS1015 worked correctly on the Jetson Nano, but not on the Jetson Xavier AGX.
The library for using ADS1015 with JetsonXavier AGX is the same as JetsonNano.

This is the result of executing the [sudo i2cdetect -r -y 1] command.
0x48 is the address of ADS1015.
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – UU – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: UU UU – – – – – – 48 – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – 74 – – –

Is the ADS1015 not compatible with Jetson Xavier AGX?
Thank you.

Please confirm with i2cget/i2cset able communicate with ADS1015

The result is i2cget.

i2cget -f -y 0 0x48
Error: Read failed

i2cget -f -y 1 0x48
0x00

i2cget -f -y 2 0x48
0xff

i2cget -f -y 3 0x48

i2cget -f -y 4 0x48
Error: Read failed

i2cget -f -y 7 0x48
Error: Read failed

i2cget -f -y 8 0x48
Error: Read failed

Did you try each bus or don’t know ADS1015 connect to which I2C bus?

Probably tried.
Bus 8 was displayed when using Jetson Xavier AGX PIN3,5, and 0x48 was displayed on bus 1 when using PING27,28.

Looks like bus 1 able read without problem?

Yes.
I was able to confirm the value with [sudo i2cdump -y 1 0x48].

When i2cdump was performed while changing the value of the analog input,
it was confirmed that the value was changed in real time on Jetson Nano,
but the value did not move on Jetson Xavier AGX.

I don’t think AGX have any different with Nano for I2C section.
If you have confirm i2cget/i2cset able communicate with ADS1015 that could be others problem.

There are few cases of using Jetson Xavier AGX with ADS1015 on the web, so I am in great trouble…

I don’t know if it has anything to do with this issue, but it looks like the [dmesg | grep i2c] command is giving an i2c write error.
[ 0.792047] iommu: Adding device 3160000.i2c to group 12
[ 0.792379] iommu: Adding device c240000.i2c to group 13
[ 0.792722] iommu: Adding device 3180000.i2c to group 14
[ 0.793094] iommu: Adding device 3190000.i2c to group 15
[ 0.793543] iommu: Adding device 31b0000.i2c to group 16
[ 0.793912] iommu: Adding device 31c0000.i2c to group 17
[ 0.794288] iommu: Adding device c250000.i2c to group 18
[ 0.794651] iommu: Adding device 31e0000.i2c to group 19
[ 0.910862] tegra-i2c 31e0000.i2c: could not find pctldev for node /host1x/dpaux@155F0000/pinmux@0, deferring probe
[ 1.896083] i2c /dev entries driver
[ 1.899166] i2c i2c-2: Added multiplexed i2c bus 30
[ 1.899813] i2c i2c-2: Added multiplexed i2c bus 31
[ 1.900323] i2c i2c-2: Added multiplexed i2c bus 32
[ 1.900863] i2c i2c-2: Added multiplexed i2c bus 33
[ 1.901612] i2c i2c-2: Added multiplexed i2c bus 34
[ 1.902230] i2c i2c-2: Added multiplexed i2c bus 35
[ 1.902528] i2c i2c-2: Added multiplexed i2c bus 36
[ 1.902827] i2c i2c-2: Added multiplexed i2c bus 37
[ 57.054658] tegra-i2c 3180000.i2c: no acknowledge from address 0x3c
[ 57.054920] fpga_config 30-003c: fpga_config_write_reg:i2c write failed, 0x3 = 1
[ 57.056442] tegra-i2c 3180000.i2c: no acknowledge from address 0x3c
[ 57.056729] fpga_config 30-003c: fpga_config_write_reg:i2c write failed, 0x3 = 0
[ 57.058203] tegra-i2c 3180000.i2c: no acknowledge from address 0x10
[ 57.058559] imx264 30-0010: imx264_write_reg:i2c write failed, 0x3204 = 0
[ 1271.548635] tegra-i2c 3180000.i2c: no acknowledge from address 0x0
[ 1293.980867] tegra-i2c 3160000.i2c: no acknowledge from address 0x0
[ 1303.576357] tegra-i2c 3160000.i2c: no acknowledge from address 0x0

Another problem with me was that imx264 didn’t work and I got an i2c error at the same time.
Is it relevant?

I don’t think that could be relative with imx264. For imx264 you may need to check the HW to figure out the root cause.

I was getting an error on the same i2c, so I thought IMX264 would work if ADS1015 was resolved.
Forget imx264.

Is there anything else I can do here to solve the ADS1015?

Hi, can you show how you connect ADS1015 to Xavier?

Hi Trumany.
Sorry for my late reply.

I couldn’t upload the image of the connection directly, so I’ll provide another link.

The connection PIN etc. are as follows.

ADS----------Xavier
VDD--------->17PIN
GND--------->25PIN
SCL--------->28PIN
SDA--------->27PIN

The blue line connecting to A0 is fetching analog data.

Thank you.

Hi Trumany, ShaneCCC.

The problem has been resolved.
The cause was the code I was building here that needed to be fixed.

When I ran i2cdump on Jetson Nano, it was a coincidence that the values ​​changed.
(I don’t know why…)

I apologize to you for a fuss over.
And thank you for your support.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.