海思hi3519a I2C报错hibvt-i2c 4562000.i2c: wait idle ab
1.前言 这周准备移植nvp6324到hi3519a板子上,可是在加载驱动时候i2c通讯不成功,移植报错hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611问题。之前一直怀疑i2c时序不对,用示波器也没有量出来问题,中间还折腾用gpio模拟i2c,均失败。可是用海思自带工具i2c_read 可以读取寄存器的值,并且是正确的。
2.问题 海思打印如下:
/home # insmod jaguar1.ko [DRV] I2C Client Init addr =30 Device ID Error... ff, Chip Count:[0] hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 Device ID Error... ff, Chip Count:[1] hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 Device ID Error... ff, Chip Count:[2] hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 hibvt-i2c 4562000.i2c: wait idle abort!, RIS: 0x611 Device ID Error... ff, Chip Count:[3] Chip Count = 0 Address [0xff][0xff][0xff][0xff] Chip Id [0xff][0xff][0xff][0xff] Rev Id [0xff][0xff][0xff][0xff] hibvt-i2c 4562000.i2c: wait i 3.解决方案 主要提供几个思考方向:
设备地址是否正确(8bit地址和7bit地址区分); 内核驱动是否加载; 复位管脚是否复位后使能; 我的设备就是把复位当作高电平有效,实际是低电平。这样初始化时候芯片复位管脚一直为低,nvp6324处于复位状态,所以通讯不成功。同时也要注意海思GPIO电压是1.8V,而NVP6324的IO管脚是3.3V,上拉电压也不能错。 https://blog.csdn.net/xclshwd/article/details/103145968
- 分享
- 举报

-
浏览量:825次2018-05-07 20:47:52
-
浏览量:386次2020-06-23 17:33:04
-
浏览量:1149次2018-02-06 10:43:46
-
浏览量:555次2020-08-03 14:27:03
-
浏览量:1221次2019-12-28 10:35:51
-
浏览量:441次2020-07-07 09:24:18
-
浏览量:348次2020-07-31 11:03:23
-
浏览量:508次2020-07-07 12:05:06
-
浏览量:499次2019-12-31 16:23:45
-
浏览量:355次2020-08-04 20:08:51
-
浏览量:608次2020-07-30 11:57:30
-
浏览量:358次2019-12-28 10:40:42
-
浏览量:1276次2018-08-16 10:50:22
-
浏览量:674次2020-07-27 16:34:42
-
浏览量:1530次2018-06-14 22:53:53
-
浏览量:273次2020-08-05 20:36:22
-
浏览量:513次2020-06-09 14:50:56
-
浏览量:420次2020-08-05 20:32:31
-
浏览量:574次2020-07-29 15:54:29
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
AAA雨林霖







举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明