简体   繁体   English

DS1307在Beaglebone黑色

[英]DS1307 on Beaglebone black

I am trying to integrate DS1307 RTC on beaglebone black, in which I am building a custom kernel with rootfs, I used SCL and SDA pins of beagle P9.17 & P9.18 ie; 我正在尝试在beaglebone black上集成DS1307 RTC,在其中使用rootfs构建自定义内核,我使用了beagle P9.17和P9.18的SCL和SDA引脚。 I2C-1 on beaglebone black but when I try to do I2C-1在beaglebone黑色上,但是当我尝试做时

i2cdetect -r 1 i2cdetect -r 1

it doesn't shows 0x68 slave address of DS1307 as per the tutorials http://learn.adafruit.com/adding-a-real-time-clock-to-beaglebone-black/wiring-the-rtc 根据教程http://learn.adafruit.com/adding-a-real-time-clock-to-beaglebone-black/wiring-the-rtc,它没有显示DS1307的0x68从站地址

Any ideas about the issue? 关于这个问题有什么想法吗?

In beagle bone black there are 3 i2c's, i2c-0,1,2 在比格犬骨黑中,有3个i2c,i2c-0,1,2

And out of this you're using i2c-1, So according to the linux images of beaglebone black the i2c-0 may appear as i2c-1 and i2c-1 appear as i2c-2 and so on , So I suggest you that instead of using i2cdetect -r 1 try 除此之外,您正在使用i2c-1,因此根据beaglebone black的linux映像,i2c-0可能显示为i2c-1,i2c-1显示为i2c-2,依此类推,所以我建议您改为i2cdetect -r 1的尝试

i2cdetect -r 2 i2cdetect -r 2

so it might show the slave address you're looking for .... 0x68 因此它可能会显示您要查找的从站地址.... 0x68

And don't forget to add the DS1307 driver for the RTC in the kernel you're building if you're using a custom kernel 而且,如果您使用的是自定义内核,请不要忘记在正在构建的内核中添加RTC的DS1307驱动程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM