This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] PROCESSOR-SDK-AM62X:尝试与 MAX30102传感器通信、并面临无法检测到器件的问题。

Guru**** 2487425 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1437024/processor-sdk-am62x-trying-to-communicate-with-the-max30102-sensor-and-facing-the-issue-of-not-being-able-to-detect-the-device

器件型号:PROCESSOR-SDK-AM62X

工具与软件:

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

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Vaishnavi、

    您使用的是哪个版本的 Linux SDK?

    我假设您使用的是 TI EVM? 如果是、您在使用哪个 TI EVM?

    请将您所做的更新附加到 Linux devicetree 文件中、以定义 I2C 外设。

    此致、

    Nick

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Vaishnavi、

    提示:使用 i2cdetect 时、我通常使用-r 参数。 以下是我看到的一个示例:

    root@am62xx-evm:~# uname -a
    Linux am62xx-evm 6.6.32-g6de6e418c80e-dirty #1 SMP PREEMPT Thu Oct 24 17:56:25 CDT 2024 aarch64 GNU/Linux
    root@am62xx-evm:~# i2cdetect -l
    i2c-0   i2c             OMAP I2C adapter                        I2C adapter
    i2c-1   i2c             OMAP I2C adapter                        I2C adapter
    i2c-2   i2c             OMAP I2C adapter                        I2C adapter
    i2c-3   i2c             i2c-1-mux (chan_id 0)                   I2C adapter
    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 52 -- -- -- -- -- -- -- -- -- -- -- -- --
    60:
    70:
    root@am62xx-evm:~# i2cdetect -y -r 0
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:                         -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- 38 -- -- -- -- -- -- UU
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- UU 52 -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --
    
    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 -r 1
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:                         -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
    20: -- -- UU -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
    40: 40 41 -- -- -- 45 -- 47 48 49 -- -- 4c 4d -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- 62 -- -- -- -- -- -- -- -- -- -- -- -- --
    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 -r 2
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:                         -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- 71 -- -- -- -- -- --
    

    如果您有时可以看到 I2C 器件、但有时不能看到、我会先仔细检查您的连接。 例如、如果使用试验电路板、请仔细检查电线、尝试重新连接电线、并尝试更换电线以及使用试验电路板的不同部分。

    此致、

    Nick

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Vaishnavi、

    让我们使用此主题来讨论 I2C 相关调试、并使用另一主题来讨论启用3.3V 输出: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1441695/processor-sdk-am62x-issues-while-aading-i2c-device 

    如果回到使用 I2C 命令的话题、我们可以继续在这里讨论。

    此致、

    Nick