Dump I2C Device - SMART Embedded Computing COMX-P2020 BSP User Manual

Hide thumbs Also See for COMX-P2020 BSP:
Table of Contents

Advertisement

Linux Deployment
00:
10: -- -- -- -- -- -- -- -- -- -- -- 1b -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- 33 -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- 53 -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
[root@COMX-P2020 /]#
7.3

Dump I2C Device

To dump the registers on the I2C Device, please use the application: i2cdump
[root@COMX-P2020 /]# /usr/sbin/i2cdump --help
Error: Unsupported option "--help"!
Usage: i2cdump [-f] [-y] [-r first-last] I2CBUS ADDRESS
[MODE [BANK [BANKREG]]]
[root@COMX-P2020 /]#
To dump the content of at24c02, which i2c bus is 0, and i2c address is 0x50, please
run the application as below:
[root@COMX-P2020 /]# i2cdump 0 0x50 b
WARNING! This program can confuse your I2C bus, cause data
loss and worse!
I will probe file /dev/i2c-0, address 0x50, mode byte
Continue? [Y/n] y
94
-- -- -- -- -- -- -- -- -- -- -- -- --
I2CBUS is an integer or an I2C bus name
ADDRESS is an integer (0x03 - 0x77)
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
COMX-P2020 BSP User Guide (6806800L84C)
Linux Deployment

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COMX-P2020 BSP and is the answer not in the manual?

Table of Contents