BeagleBone Black RTC?

5,498 views
Skip to first unread message

Alexander Holler

unread,
Feb 1, 2013, 2:51:51 AM2/1/13
to beagl...@googlegroups.com
Hello,

I've ust had a look at the specs for BeagleBone Black.

As usual, my first question was: Does it support RTC operation?

Having a first look at the schematics, it does not look like it is
possible to connect some coin battery or similiar to drive the processor
in RTC only mode. Am I right and this another non-RTC design which needs
an external RTC connected to I2C or similiar?

Regards,

Alexander

Alexander Holler

unread,
Feb 1, 2013, 3:45:25 AM2/1/13
to beagl...@googlegroups.com
Some circuitry and a (small) connector to be able to use one of those
widely available small LiPo's (as used in the model making world to
power those small helis and similiar) would have been very nice too.

Regards,

Alexander

Gerald Coley

unread,
Feb 1, 2013, 7:59:13 AM2/1/13
to beagl...@googlegroups.com
Same as Beaglebone. No RTC battery capability.

Gerald




--
For more options, visit http://beagleboard.org/discuss
--- You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Gerald
 

Gerald Coley

unread,
May 10, 2013, 2:40:59 PM5/10/13
to beagl...@googlegroups.com
These documents are correct. In fact, I know the author fairly well.

Yes, you can add the battery if you chose to. But, the SW needs to be there to support it. Also, you need the SW to put the PMIC to power down mode and shut everything down and not to turn off the power.

So. add the battery and you will see that the RTC function, does not work. You will need to add that support to the SW.

So as I said, No RTC support, just like, the BeagleBone.

Gerald


On Fri, May 10, 2013 at 1:33 PM, <eoin....@gmail.com> wrote:
That is not correct (Although it may have been at the time you wrote that)

http://www.digikey.com/web%20export/supplier%20content/ti_296/mkt/boards/BBB_SRM.pdf?redirected=1
Page 40 of the PDF linked...
Four pads are provided on the board to allow access to the battery pins on the TPS65217C. The pads can be loaded with a 4x4 header or  you may  just wire a battery into the pads. In addition they could provide access via a cape if desired.

There is no fuel gauge function provide by the TPS65217C. That would need to be added if that function was required.  Access to 1-wire  SPI,  or I2C interfaces required to use a fuel gauge will need to be accessed by using the expansion headers on the board.

NOTE: Refer to the TPS65217C documentation before connecting anything to these pins.
http://www.ti.com/lit/ds/slvsb64f/slvsb64f.pdf

Hope that helps others.



On Friday, February 1, 2013 7:59:13 AM UTC-5, Gerald wrote:
Same as Beaglebone. No RTC battery capability.

Gerald
On Fri, Feb 1, 2013 at 1:51 AM, Alexander Holler <hol...@ahsoftware.de> wrote:
Hello,

I've ust had a look at the specs for BeagleBone Black.

As usual, my first question was: Does it support RTC operation?

Having a first look at the schematics, it does not look like it is possible to connect some coin battery or similiar to drive the processor in RTC only mode. Am I right and this another non-RTC design which needs an external RTC connected to I2C or similiar?

Regards,

Alexander


--
For more options, visit http://beagleboard.org/discuss
--- You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Fisher Grubb

unread,
Jul 7, 2014, 11:41:25 AM7/7/14
to beagl...@googlegroups.com
Hi all,

If one adds the feature in software, would it be physically possible to have the realtime clock feature (with wake up events etc) if it is done correctly in software?

Is the software implementation the only thing stopping RTC functionality (besides needing to connect a battery to the power management chip)?

Fisher

David Anders

unread,
Jul 7, 2014, 11:54:22 AM7/7/14
to beagl...@googlegroups.com, hol...@ahsoftware.de
or just purchase a RTC Cape

http://elinux.org/CircuitCo:RTC_Cape for $29.99MSRP

Fisher Grubb

unread,
Jul 7, 2014, 12:04:24 PM7/7/14
to beagl...@googlegroups.com, hol...@ahsoftware.de
Hi David,

Yes, I have also seen small boards from Adafruit, though if I need an RTC and it is possible to implement a fully functional one with the current board by just adding a battery, I wouldn't add any extra components, especially since the RTC in the CPU seems to have wake up events.

I am doing a Masters project in control systems at university and am hoping to either not have any external boards or at least very minimal.

I will probably make my own board and won't add an RTC if I can implement one with what is already on the BBB, especially as it may have more features such as wake ups which a general I2C RTC won't have I don't think.

Fisher

David Anders

unread,
Jul 7, 2014, 12:13:24 PM7/7/14
to beagl...@googlegroups.com, hol...@ahsoftware.de
Fisher,

good luck, as Gerald said, making it work is going to be an extreme challenge, which is why we specifically created the RTC Cape.

Dave

Gerald Coley

unread,
Jul 7, 2014, 12:16:44 PM7/7/14
to beagl...@googlegroups.com, Alexander Holler
External RTC is the best solution. You could add a battery to the BBB and use it with the right SW. But, depending on how many days you want it to hold time, it may or may not work for you. 

Gerald



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fisher Grubb

unread,
Jul 7, 2014, 12:30:40 PM7/7/14
to beagl...@googlegroups.com, hol...@ahsoftware.de
Hi Dave and Gerald,

I don't have one of these boards yet so just wanted to check as I am assessing the BBB and comparing it to others for my university project.

If it is physically possible to add a rechargeable battery to the PMIC for it to power the board and be charged when external power is connected, that is a bonus that the BBB has on board battery charging (I assume only for low capacity LiPos like 800 mAh etc).

If the that battery also allows one to use the RTC within the Ti CPU as the RTC was intended which is to my knowledge to keep track of time (with calendar) and to wake the CPU up with events, then surely that means there is included RTC functionality if the SW is done correctly?

If one just needs to add some commands to a shutdown script for this to all work once the battery is added then its another justification in my report.

Am I off track?  Gerald, was your only issue with that the battery capacity between charges?  Is the SW just sending low level sleep commands to the CPU after kernel/OS has gone through some sleep or shut down process and I2C to the PMIC?

I haven't checked the power management chip docs or details of the AM355x to know the shutdown/sleep process for an RTC wake etc.

I'll look into it if I get one.

Fisher

Alexander Holler

unread,
Jul 7, 2014, 1:15:53 PM7/7/14
to David Anders, beagl...@googlegroups.com
Am 07.07.2014 17:54, schrieb David Anders:
> or just purchase a RTC Cape
>
> http://elinux.org/CircuitCo:RTC_Cape for $29.99MSRP

Thanks, but I already have fully working hot-pluggable USB-RTCs I can
use with almost all RTC-less boards I have.

But you might have an interesst in some patches I've written to use
them. They will make it possible to use the RTC-drivers as modules (and
the time still will be set automatically by the kernel), besides to
choose by kernel-command-line which RTC driver will be used:

https://lkml.org/lkml/2014/6/13/6

Unfortunately they will likely never end up in mainline.

Regards,

Alexander Holler

edugalve...@gmail.com

unread,
Jul 18, 2014, 3:29:27 AM7/18/14
to beagl...@googlegroups.com, dande...@gmail.com, hol...@ahsoftware.de
Hi,

I just managed to put the PMIC in SLEEP state, and the AM335x in RTC_Only state. It has been done using u-boot, based on Matt (https://groups.google.com/d/msg/beagleboard/K7DuusrJ6G4/unH1m5HpiuoJ) explanation:

U-Boot# i2c mw 24 a 00 
--- Send 0x00 to PMIC

U-Boot# base 44e3e000
Base Address: 0x44e3e000
--- Set RTC registers as base address

U-Boot# mw 98 10011
--- Program RCT_PMIC register as PMIC_Power_EN enable, wakeup event enabled, and active low

U-Boot# mw 48 10
--- Set alarm2 as interrupt

U-Boot# cp 8 88 4
--- copy actual hour to alarm2 hours

U-Boot# md 0 2
44e3e000: 00000056 00000044                      V...D...
--- read actual second/minute (56/44)

U-Boot# mw 84 46
-- set minute 46 as alarm2 trigger

And wait until it is powered off. A pmic wakeup event (AC on, for example) will wake up the whole Beaglebone.

Regards!

William Hermans

unread,
Jul 18, 2014, 2:43:40 PM7/18/14
to beagl...@googlegroups.com
edugalvez,

I must have missed that post, or the post predates me on these groups. Thanks for sharing, this is very good to know. Truly.

On the other side of the coin, how is this useful once you're running Linux ? Perhaps /dev/mem ?


Message has been deleted

Edu Galvez

unread,
Jul 21, 2014, 1:14:56 PM7/21/14
to beagl...@googlegroups.com, hol...@ahsoftware.de
William, don't know yet :). 
Information about this topic was confusing, so first step was to prove that the BBB and a Li-Po battery can keep the RTC alive.


William Hermans

unread,
Jul 21, 2014, 1:20:15 PM7/21/14
to beagl...@googlegroups.com
Ok. I was not trying to be smart, but was curious. I am still learning a lot about the beaglebone black myself, AND we're offgrid here ( solar and wind ) so this kind of topic generally peaks my interest.


On Mon, Jul 21, 2014 at 10:14 AM, Edu Galvez <edugalve...@gmail.com> wrote:
William, don't know yet :). 
Information about this topic was confusing, so first step was to prove that the BBB and a Li-Po battery can keep the RTC alive.


Fidel Alejandro Rodriguez

unread,
Dec 3, 2015, 5:06:10 PM12/3/15
to BeagleBoard, hol...@ahsoftware.de, fisher...@gmail.com
did you manage to implement RTC whith BBB regards

Robert Nelson

unread,
Dec 3, 2015, 5:18:38 PM12/3/15
to Beagle Board, Alexander Holler, fisher...@gmail.com
On Thu, Dec 3, 2015 at 4:06 PM, Fidel Alejandro Rodriguez <alek...@gmail.com> wrote:
did you manage to implement RTC whith BBB regards

This is one way:


Otherwise grab any i2c/rtc adapter board off sparkfun, (3.3v) and wire to the i2c..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Yiling Cao

unread,
Dec 4, 2015, 1:53:34 AM12/4/15
to beagl...@googlegroups.com, Alexander Holler, fisher...@gmail.com
in my custom board, i used an external i2c RTC chip, proven to be reliable and inexpensive.

--

Alexander Holler

unread,
Dec 4, 2015, 4:05:27 AM12/4/15
to Robert Nelson, Beagle Board, fisher...@gmail.com
Am 03.12.2015 um 23:17 schrieb Robert Nelson:
> On Thu, Dec 3, 2015 at 4:06 PM, Fidel Alejandro Rodriguez <
> alek...@gmail.com> wrote:
>
>> did you manage to implement RTC whith BBB regards
>>
>
> This is one way:
>
> http://elinux.org/CircuitCo:RTC_Cape
>
> Otherwise grab any i2c/rtc adapter board off sparkfun, (3.3v) and wire to
> the i2c..

I've build me USB-RTCs to use them with different boards:

http://ahsoftware.de/dcf77-hid-usb-rtc/
http://ahsoftware.de/usb-rtc/

Alexander Holler

William Hermans

unread,
Dec 4, 2015, 9:34:26 AM12/4/15
to beagl...@googlegroups.com
I've build me USB-RTCs to use them with different boards:

http://ahsoftware.de/dcf77-hid-usb-rtc/
http://ahsoftware.de/usb-rtc/

+1

Looks like you've been busy yet again Alexander . . . very interesting reading :)


Reply all
Reply to author
Forward
0 new messages