SCM186 NXP i.MX 8M Plus ARM-based Evaluation Kit
3.5.1.6 I2C
Herodotus supports 2*i2c connector for using external i2c devices. This section explains how
to control external i2c devices by i2c-tool.
SCB184
I2C Bus
Connector
Control
I2C3
0
I2C4
2
There are i2c-tools usage below:
i2cdetect – This function can detect exist i2c bus and list all devices in selected i2c bus.
⚫
Usage: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]
i2cdetect -F I2CBUS
i2cdetect -l
I2CBUS is an integer or an I2C bus name
If provided, FIRST and LAST limit the probing range.
i2cdump – This function can dump all data value in selected i2c device address.
⚫
Usage: i2cdump [-f] [-y] [-r first-last] [-a] I2CBUS ADDRESS [MODE [BANK
[BANKREG]]]
I2CBUS is an integer or an I2C bus name
ADDRESS is an integer (0x08 - 0x77, or 0x00 - 0x7f if -a is given)
MODE is one of:
b (byte, default)
w (word)
W (word on even register addresses)
s (SMBus block)
i (I2C block)
c (consecutive byte)
Append p for SMBus PEC
30
I2C4 I2C3
Example
i2cdetect –y 0
i2cdetect –y 2
Herodotus BSP User Guide
Need help?
Do you have a question about the SCM186 and is the answer not in the manual?