Xavier NX,About I2C

hi
May I ask if there is a demo or operation manual for I2C?
I want to use I2C to communicate with an external MCU (Slave). (3, 5, or 27, 28 pins)
thanks

Try the i2c utility like i2cdetect/i2cget/i2cset …

Thanks

xavier nx devkit:
40pins,pin3 and 5,Which corresponds to i2c bus?
i2c-8 or i2c-1?

Yes, bus 8 and bus 1

Hi ShaneCCC:

Now, I use the STM32H743 microcontroller to connect to the Xavier NX, and the corresponding pins : H7’s I2c_SCL–NX 40pin “I2C1_SCL”(pin5),and H7’s I2C_SDA–NX 40pin “I2C_SDA”(pin3).GND is also connected.

As shown in the figure, MCU is a slave device:

However, I cannot detect the device address using i2cdetect.

But if I use H7 and H7 for I2C communication, there is no problem with this slave device.

I have no way to start now, so I’m here to ask a question.

What’s the version?

cat /etc/nv_tegra_release

Could you probe to confirm while issue i2c command.

Thanks

I am using Jetpack version 5.0.2.

When I didn’t connect to the MCU and used an oscilloscope to detect pin3 and pin5, there was a signal coming out, but once I connected to the MCU, the signal disappeared and the SCL was also pulled down.

Please check from MCU side as it looks like MCU hold the lines.

Now,I can communicate normally!

My mcu I2C is Standard mode
image

It’s okay for me to send one byte of data every 1 second from NX,But as long as the sending speed is slightly faster, an error will be reported,“write error: Remote I/O error”,But at this point, using i2cedetect can find the device address.

So,What is the iic speed of NX?400khz?

If I adjust the mcu speed
image

Can only communicate a few times…then,“write error: Remote I/O error”,using i2cedetect can find the device address…

Provide solutions.

You can check the device tree for the i2c speed.
Check the “clock-frequency” in the i2c@xxxx scope.

Thanks

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