嵌入式爱好者

查看: 3075|回复: 2

[Linux] T507板子的i2c设备AT24读写有问题,这是打印的日志

[复制链接]

1

主题

2

帖子

8

积分

扫一扫,手机访问本帖
发表于 2023-7-4 16:25:18 | 显示全部楼层 |阅读模式
# i2cdetect -y 3
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f[   41.699500] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x3)

00:          [   41.713112] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x4)
-- -- [   41.723653] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x5)
-- [   41.733444] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x6)
-- [   41.743060] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x7)
-- [   41.752624] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x8)
-- [   41.762181] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x9)
-- [   41.771751] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0xa)
-- [   41.781311] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0xb)
-- [   41.790880] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0xc)
-- [   41.800438] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0xd)
-- [   41.810049] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0xe)
-- [   41.819614] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0xf)
--
10: [   41.829207] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x10)
-- [   41.839364] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x11)
-- [   41.849035] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x12)
-- [   41.858687] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x13)
-- [   41.868353] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x14)
-- [   41.878042] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x15)
-- [   41.887715] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x16)
-- [   41.897356] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x17)
-- [   41.907031] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x18)
-- [   41.916688] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x19)
-- [   41.926486] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x1a)
-- [   41.936098] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x1b)
-- [   41.945776] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x1c)
-- [   41.955455] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x1d)
-- [   41.965101] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x1e)
-- [   41.974772] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x1f)
--
20: [   41.984433] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x20)
-- [   41.994625] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x21)
-- [   42.004288] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x22)
-- [   42.013947] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x23)
-- [   42.023596] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x24)
-- [   42.033260] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x25)
-- [   42.042956] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x26)
-- [   42.052630] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x27)
-- [   42.062277] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x28)
-- [   42.071944] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x29)
-- [   42.081601] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x2a)
-- [   42.091260] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x2b)
-- [   42.100904] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x2c)
-- [   42.110611] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x2d)
-- [   42.120272] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x2e)
-- [   42.129952] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x2f)
--
30: [   42.139603] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x30)
-- [   42.149771] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x31)
-- [   42.159456] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x32)
-- [   42.169122] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x33)
-- [   42.178784] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x34)
-- [   42.188434] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x35)
[   42.196677] random: crng init done
-- [   42.201930] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x36)
-- [   42.211642] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x37)
-- [   42.221295] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x38)
-- [   42.230961] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x39)
-- [   42.240625] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x3a)
-- [   42.250339] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x3b)
-- [   42.260151] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x3c)
-- [   42.269796] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x3d)
-- [   42.279529] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x3e)
-- [   42.289189] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x3f)
--
40: [   42.298864] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x40)
-- [   42.309063] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x41)
-- [   42.318721] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x42)
-- [   42.328385] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x43)
-- [   42.338034] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x44)
-- [   42.347695] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x45)
-- [   42.357348] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x46)
-- [   42.367011] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x47)
-- [   42.376708] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x48)
-- [   42.386370] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x49)
-- [   42.396024] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x4a)
-- [   42.405685] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x4b)
-- [   42.415350] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x4c)
-- [   42.425045] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x4d)
-- [   42.434717] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x4e)
-- [   42.444376] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x4f)
--
50: [   42.454309] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x51)
50 -- [   42.464217] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x52)
-- [   42.474129] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x53)
-- [   42.483857] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x54)
-- [   42.493529] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x55)
-- [   42.503190] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x56)
-- [   42.512897] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x57)
-- [   42.522564] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x58)
-- [   42.532214] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x59)
-- [   42.541925] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x5a)
-- [   42.551572] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x5b)
-- [   42.561230] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x5c)
-- [   42.570894] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x5d)
-- [   42.580562] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x5e)
-- [   42.590226] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x48, dev addr: 0x5f)
--
60: [   42.599911] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x60)
-- [   42.610106] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x61)
-- [   42.619766] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x62)
-- [   42.629439] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x63)
-- [   42.639096] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x64)
-- [   42.648762] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x65)
-- [   42.658451] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x66)
-- [   42.668116] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x67)
-- [   42.677772] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x68)
-- [   42.687450] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x69)
-- [   42.697102] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x6a)
-- [   42.706779] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x6b)
-- [   42.716439] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x6c)
-- [   42.726114] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x6d)
-- [   42.735780] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x6e)
-- [   42.745445] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x6f)
--
70: [   42.755111] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x70)
-- [   42.765282] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x71)
-- [   42.774968] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x72)
-- [   42.784635] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x73)
-- [   42.794284] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x74)
-- [   42.803953] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x75)
-- [   42.813609] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x76)
-- [   42.823323] sunxi_i2c_do_xfer()1940 - [i2c3] incomplete xfer (status: 0x20, dev addr: 0x77)
--
#
#
# i2cget -y 3 0x50 1
0xff
#
#
# i2cset -y 3 0x50 1 0x44
#
#
# i2cget -y 3 0x50 1
0xff
回复

使用道具 举报

1

主题

2

帖子

8

积分

 楼主| 发表于 2023-7-4 16:26:24 | 显示全部楼层
大佬点拨一下
点评回复 支持 反对

使用道具 举报

0

主题

51

帖子

111

积分

发表于 2023-7-5 09:43:35 | 显示全部楼层
请问您用的是飞凌的底板吗?还有这个at24是啥呢?是eeprom还是温湿度传感器呢?如果不是用的飞凌的底板您可以检查是不是您硬件上i2c没有做上拉电阻。
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 14:15

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表