工具与软件:
Hiiiii、
"我正在尝试使用 AM62x 处理器与 MAX30102传感器进行外部通信。 但是、如果我 连接到 am62x 板、我无法检测到 MAX30102器件、所以我尝试了 i2c0、i2c2器件、但它没有显示值<0X57>。那我该如何连接它...please 为我提供了解决方案
root@am62xx-evm:~# i2cdetect -y 1
Warning: Can't use SMBus Quick Write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: -- -- -- -- -- -- -- --
40:
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60:
70:
root@am62xx-evm:~# i2cdetect -y 2
Warning: Can't use SMBus Quick Write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: -- -- -- -- -- -- -- --
40:
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60:
70:
root@am62xx-evm:~# i2cdetect -y 0
Warning: Can't use SMBus Quick Write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: -- -- -- -- -- -- -- --
40:
50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --
60:
70:
root@am62xx-evm:~# ls /dev
autofs mmcblk0boot0 ptyp3 tty19 tty54 ttypd
block mmcblk0boot1 ptyp4 tty2 tty55 ttype
btrfs-control mmcblk0rpmb ptyp5 tty20 tty56 ttypf
bus mmcblk1 ptyp6 tty21 tty57 ubi_ctrl
char mmcblk1p1 ptyp7 tty22 tty58 udev_network_queue
console mmcblk1p2 ptyp8 tty23 tty59 urandom
cpu_dma_latency mqueue ptyp9 tty24 tty6 vcs
crypto mtd ptypa tty25 tty60 vcs1
cuse mtd0 ptypb tty26 tty61 vcs2
disk mtd0ro ptypc tty27 tty62 vcs3
dma_heap mtd1 ptypd tty28 tty63 vcs4
dri mtd1ro ptype tty29 tty7 vcs5
fd mtd2 ptypf tty3 tty8 vcs6
full mtd2ro random tty30 tty9 vcs7
fuse mtd3 remoteproc0 tty31 ttyS0 vcsa
gpiochip0 mtd3ro remoteproc1 tty32 ttyS1 vcsa1
gpiochip1 mtd4 rfkill tty33 ttyS10 vcsa2
gpiochip2 mtd4ro rtc tty34 ttyS11 vcsa3
hugepages mtd5 rtc0 tty35 ttyS2 vcsa4
hwrng mtd5ro shm tty36 ttyS3 vcsa5
i2c-0 mtd6 snapshot tty37 ttyS4 vcsa6
i2c-1 mtd6ro snd tty38 ttyS5 vcsa7
i2c-2 mtdblock0 stderr tty39 ttyS6 vcsu
i2c-3 mtdblock1 stdin tty4 ttyS7 vcsu1
initctl mtdblock2 stdout tty40 ttyS8 vcsu2
kmsg mtdblock3 tee0 tty41 ttyS9 vcsu3
log mtdblock4 teepriv0 tty42 ttyp0 vcsu4
loop-control mtdblock5 tty tty43 ttyp1 vcsu5
loop0 mtdblock6 tty0 tty44 ttyp2 vcsu6
loop1 net tty1 tty45 ttyp3 vcsu7
loop2 null tty10 tty46 ttyp4 vfio
loop3 port tty11 tty47 ttyp5 vga_arbiter
loop4 pps0 tty12 tty48 ttyp6 watchdog
loop5 ptmx tty13 tty49 ttyp7 watchdog0
loop6 ptp0 tty14 tty5 ttyp8 watchdog1
loop7 pts tty15 tty50 ttyp9 watchdog2
mapper ptyp0 tty16 tty51 ttypa watchdog3
mem ptyp1 tty17 tty52 ttypb watchdog4
mmcblk0 ptyp2 tty18 tty53 ttypc zero
root@am62xx-evm:~# i2cdetect -y 3
Warning: Can't use SMBus Quick Write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: [ 61.451030] wlcore: WARNING ELP wakeup timeout!
[ 61.455631] wlcore: down
[ 61.483047] omap_i2c 20010000.i2c: controller timed out
[ 61.488476] ieee80211 phy0: Hardware restart was requested
-- [ 62.539076] omap_i2c 20010000.i2c: controller timed out
-- [ 63.595105] omap_i2c 20010000.i2c: controller timed out
-- [ 64.651144] omap_i2c 20010000.i2c: controller timed out
-- [ 64.931645] wlcore: PHY firmware version: Rev 8.2.0.0.245
[ 65.025499] wlcore: firmware booted (Rev 8.9.0.0.86)
[ 65.707165] omap_i2c 20010000.i2c: controller timed out
-- [ 66.763186] omap_i2c 20010000.i2c: controller timed out
-- [ 67.819206] omap_i2c 20010000.i2c: controller timed out
-- [ 68.879228] omap_i2c 20010000.i2c: controller timed out
--
40:
50: [ 69.931271] omap_i2c 20010000.i2c: controller timed out
-- [ 70.987280] omap_i2c 20010000.i2c: controller timed out
-- [ 72.043291] omap_i2c 20010000.i2c: controller timed out
-- [ 73.099305] omap_i2c 20010000.i2c: controller timed out
-- [ 74.159314] omap_i2c 20010000.i2c: controller timed out
-- [ 75.211335] omap_i2c 20010000.i2c: controller timed out
-- [ 76.267348] omap_i2c 20010000.i2c: controller timed out
-- [ 77.323358] omap_i2c 20010000.i2c: controller timed out
-- [ 78.379365] omap_i2c 20010000.i2c: controller timed out
-- [ 79.435378] omap_i2c 20010000.i2c: controller timed out
-- [ 80.491386] omap_i2c 20010000.i2c: controller timed out
-- [ 81.547389] omap_i2c 20010000.i2c: controller timed out
-- [ 82.603405] omap_i2c 20010000.i2c: controller timed out
-- [ 83.659410] omap_i2c 20010000.i2c: controller timed out
-- [ 84.715412] omap_i2c 20010000.i2c: controller timed out
-- [ 85.771445] omap_i2c 20010000.i2c: controller timed out
--
60:
70:
root@am62xx-evm:~#
root@am62xx-evm:~# lsmod | grep i2c
snd_soc_tlv320aic3x_i2c 12288 1
snd_soc_tlv320aic3x 73728 1 snd_soc_tlv320aic3x_i2c
root@am62xx-evm:~#
root@am62xx-evm:~# dmesg | grep i2c
[ 0.342680] platform 30200000.dss: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/bridge-hdmi@3b
[ 0.363662] platform connector-hdmi: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/bridge-hdmi@3b
[ 0.852657] i2c_dev: i2c /dev entries driver
[ 1.070294] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz
[ 1.077345] platform connector-hdmi: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/bridge-hdmi@3b
[ 1.087334] platform 30200000.dss: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/bridge-hdmi@3b
[ 1.097097] i2c 1-003b: Fixed dependency cycle(s) with /connector-hdmi
[ 1.103841] i2c 1-003b: Fixed dependency cycle(s) with /bus@f0000/dss@30200000
[ 1.111811] omap_i2c 20010000.i2c: bus 1 rev0.12 at 100 kHz
[ 1.118952] omap_i2c 20020000.i2c: bus 2 rev0.12 at 400 kHz
[ 1.445349] platform 31000000.usb: Fixed dependency cycle(s) with /bus@f0000/i2c@20000000/tps6598x@3f/connector
[ 7.066772] i2c i2c-1: Added multiplexed i2c bus 3
[ 61.483047] omap_i2c 20010000.i2c: controller timed out
[ 62.539076] omap_i2c 20010000.i2c: controller timed out
[ 63.595105] omap_i2c 20010000.i2c: controller timed out
[ 64.651144] omap_i2c 20010000.i2c: controller timed out
[ 65.707165] omap_i2c 20010000.i2c: controller timed out
[ 66.763186] omap_i2c 20010000.i2c: controller timed out
[ 67.819206] omap_i2c 20010000.i2c: controller timed out
[ 68.879228] omap_i2c 20010000.i2c: controller timed out
[ 69.931271] omap_i2c 20010000.i2c: controller timed out
[ 70.987280] omap_i2c 20010000.i2c: controller timed out
[ 72.043291] omap_i2c 20010000.i2c: controller timed out
[ 73.099305] omap_i2c 20010000.i2c: controller timed out
[ 74.159314] omap_i2c 20010000.i2c: controller timed out
[ 75.211335] omap_i2c 20010000.i2c: controller timed out
[ 76.267348] omap_i2c 20010000.i2c: controller timed out
[ 77.323358] omap_i2c 20010000.i2c: controller timed out
[ 78.379365] omap_i2c 20010000.i2c: controller timed out
[ 79.435378] omap_i2c 20010000.i2c: controller timed out
[ 80.491386] omap_i2c 20010000.i2c: controller timed out
[ 81.547389] omap_i2c 20010000.i2c: controller timed out
[ 82.603405] omap_i2c 20010000.i2c: controller timed out
[ 83.659410] omap_i2c 20010000.i2c: controller timed out
[ 84.715412] omap_i2c 20010000.i2c: controller timed out
[ 85.771445] omap_i2c 20010000.i2c: controller timed out