TI中文支持网
TI专业的中文技术问题搜集分享网站

AM335x I2c0外拉DS1338问题

在UBOOT下,输入I2C  PROBE命令,就提示:

Check if pads/pull-ups of bus 0 are properly configured
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus 0 are properly configured
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus 0 are properly configured

输入date reset 命令就提示:

old_bus = i2c_get_bus_num();
Reset RTC…
i2c_reg_write: bus=0 addr=0x68, reg=0x00, val=0x00
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x07, val=0x13
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x06, val=0x15
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x05, val=0x01
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x03, val=0x03
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x04, val=0x01
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x02, val=0x16
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x01, val=0x30
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x00, val=0x21
i2c_write: pads on bus 0 probably not configured (status=0x10)
RTC: 2015-01-01 16:30:21 UTC
i2c_reg_write: bus=0 addr=0x68, reg=0x06, val=0x16
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x05, val=0x01
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x03, val=0x07
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x04, val=0x18
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x02, val=0x19
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x01, val=0x13
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_reg_write: bus=0 addr=0x68, reg=0x00, val=0x12
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
i2c_reg_read: bus=0 addr=0x68, reg=0x00, val=0xbe
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
i2c_reg_read: bus=0 addr=0x68, reg=0x01, val=0xbe
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
i2c_reg_read: bus=0 addr=0x68, reg=0x02, val=0xbe
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
i2c_reg_read: bus=0 addr=0x68, reg=0x03, val=0xbe
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
i2c_reg_read: bus=0 addr=0x68, reg=0x04, val=0xbe
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
i2c_reg_read: bus=0 addr=0x68, reg=0x05, val=0xbe
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
i2c_reg_read: bus=0 addr=0x68, reg=0x06, val=0xbe
### Warning: RTC oscillator has stopped
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
i2c_reg_read: bus=0 addr=0x68, reg=0x00, val=0xbf
i2c_reg_write: bus=0 addr=0x68, reg=0x00, val=0x3f
i2c_write: pads on bus 0 probably not configured (status=0x10)
## Get date failed

我用的是I2C0,外接1个DS1338做外部的RTC用,时钟用的是32.768K的有源振荡器.

Jian Zhou:

I2C电路上拉了么?另外确定下DS1338的I2C地址是否正确

leo chen:

进入linux系统测试一下呗

赞(0)
未经允许不得转载:TI中文支持网 » AM335x I2c0外拉DS1338问题
分享到: 更多 (0)