begalebone black i2c 调试 PMIC

本文介绍了如何在BeagleBone Black上使用U-Boot的I2C命令调试PMIC(TPS65217)。通过`i2c dev`切换I2C总线,并使用`i2c probe`检测芯片,以及`i2c md`读取寄存器数据。在调试过程中遇到的总线问题和数据溢出错误也进行了说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

   由于我们硬件要调试PMIIC(TPS65217),所以必须找到i2c-0的开放接口。百度了好多,大多是关于系统中i2c tools的应用。对应着硬件i2c-1和i2c-2的开放接口。但是PMIC 和eeprom 还有hdmi都是挂载在i2c-o的bus上。所以无法应用。无意中大神告知uboot界面下有一个i2c的命令。废话不多说,直接上代码和图。

U-Boot# i2c help
i2c - I2C sub-system

Usage:
i2c bus [muxtype:muxaddr:muxchannel] - show I2C bus info
crc32 chip address[.0, .1, .2] count - compute CRC32 checksum
i2c dev [dev] - show or set current I2C bus
i2c loop chip address[.0, .1, .2] [# of objects] - looping read of device
i2c md chip address[.0, .1, .2] [# of objects] - read from I2C device
i2c mm chip address[.0, .1, .2] - write to I2C device (auto-incrementing)
i2c mw chip address[.0, .1, .2] value [count] - write to I2C device (fill)
i2c nm chip address[.0, .1, .2] - write to I2C device (constant address)
i2c probe [address] - test for and show device(s) on the I2C bus
i2c read chip address[.0, .1, .2] length memaddress - read to memory
i2c write memaddress chip address[.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值