RTC on Pandaboard
Pages: 1 2
Chris Hall (132) 3554 posts |
Is the CJE RTC module for the Pandaboard supported yet in ROM builds please (and, if so, what module/version do I look for)? I currently use RISC OS 5.21 (03-Sep-2013). |
Chris Evans (457) 1614 posts |
Support has been built in for about a year. It is automatically detected but you do have to set the clock to not use a time server, I think it defaults to timeserver. |
Willi Theiss (541) 17 posts |
Support for external RTC modules was added on 2013-11-12 into ROOL CVS. Any ROM build after that date should have it. |
Chris Evans (457) 1614 posts |
Oops sorry I was thinking of the Pi. |
David R. Lane (77) 766 posts |
I set the clock to “set manually” in the Time and Date configuration, i.e. not nettime,; but, when I powered the Pandaboard up the next day, it gave the time of when I shut down the day before. :-( |
Chris Hall (132) 3554 posts |
@Will Many thanks. Support for external RTC modules was added on 2013-11-12 into ROOL CVS. Any ROM build after that date should have it. Do you have a note of any milestones (such as this) in the Panda ROM builds? I would like to improve the user documentation by explaining when some of the facilities (such as this) were added. For example is reset (by expansion connector switch) and reset (by software) supported yet? |
Willi Theiss (541) 17 posts |
@Chris Here are some “milestone” of the last year for OMAP4: 2013-11-16 Audio module changed to use API 2.0 (for stereo reversal) 2013-11-12 added support for external RTC and power control hardware 2013-09-02 added SmartReflex driver 2013-09-01 added support for all 4 I2C interfaces 2013-04-13 added GPIO device 2013-04-07 Audio interface: removed samplerates which are not supported by hardware [88200 and 96000 are directly supported by hardware] I have sent in some changes for solving the reset problem, but they are not yet added into CVS. |
David R. Lane (77) 766 posts |
@Willi
So can you tell me how to get the RTC going on my Pandaboard, because setting it to “Set manually” in the Configuration application doesn’t keep the time on rebooting the computer. My Pandaboard has the RTC hardware and battery and is running RISC OS V5.21 (28-Feb-14). |
Willi Theiss (541) 17 posts |
@David Do you have a CMOS widget fitted? Otherwise, do you have something in your boot sequence which is responsible for this behaviour? |
David R. Lane (77) 766 posts |
@Willi |
David R. Lane (77) 766 posts |
@Willi Next, I got !Reporter set up to report on the boot up, but I couldn’t see anything wrong. |
Willi Theiss (541) 17 posts |
@David |
Chris Evans (457) 1614 posts |
David, The RTC should work even without running your !Boot. If your monitor can cope with it, then it might be useful to try disabling running !Boot to make sure there’s nothing there that’s causing the problem. Also, can you read the temperature from the on-board temperature sensor on the RTC? Go to http://www.cjemicros.co.uk/micros/products/resources/PandaTempDisp.zip to download software to try it. If this doesn’t work, then it may be a faulty RTC board. I’m sure we’ve had numerous discussions by email, phone and at Shows regarding sending the RTC back to us for testing, but I don’t think you have done? pp. Chris |
David R. Lane (77) 766 posts |
@Willi and Chris The first line makes sense because I ran the program at that date and time (to the nearest minute) and the second line is due to my tweak of the program. After exiting from the program, the clock output on the iconbar (from Alarm) was 10:30:00 pm. 6/3/14 as expected. Similar results with RTC board fitted some minutes later. |
Chris Evans (457) 1614 posts |
David, Ok, from what you say, it would seem that RISC OS is able to talk to the RTC board and clock chip. The symptom of the time restarting from when you last switched off could possibly be down to a faulty crystal on the RTC board not ‘ticking’. Once again I shall reiterate the offer that if you would like to send your RTC board back to us, we can test it for you and replace if necessary. pp. Chris |
Andrew Rawnsley (492) 1445 posts |
If you’re having trouble, you might wish to try one of our RTC boards, which should work out of the box, and don’t require anything fancy extra to my knowledge. I can’t comment on CJE products, but I can say ours have been in the field for well over a year now with no problems. You will, however, need the pins in place on the Panda expansion header, as they aren’t present by default. |
David R. Lane (77) 766 posts |
@Chris I have just posted (first class) the RTC board including 3V cell battery to you for testing and replacement if necessary. |
Dave Higton (1515) 3526 posts |
At the risk of stating the obvious: the reading returned by the RTC board will be that of the sensor on the RTC board. Since the RTC board hardly consumes any power, it’s reasonable to assume that the sensor will be at pretty close to the temperature of the RTC board. The RTC board will be pretty much at the temperature of the air in its vicinity; very slightly higher because of heat conducted from the main board through the connectors between main and RTC boards. And, since the thermal conductivity through the boards and connectors is very poor, that leaves the RTC board measuring pretty much the temperature of the air in its vicinity. The air in the case is presumably not fanned, so it will be moving slowly, so you would see significant differences in air temperature within the case. But you probably don’t care. (Long explanation in order to try to get you thinking through the physics involved.) |
Chris Evans (457) 1614 posts |
Ok, thanks, will let you know how we get on.
RTC support has been in ROM for over a year…
The temperature sensor on the RTC board basically measures the temperature of the sensor on the RTC board. As Dave Higton says, this will be effectively the localised temperature of the air surrounding the RTC board in the case. Obviously, this will be different to the temperature of the CPU core. pp. Chris |
David R. Lane (77) 766 posts |
@Dave and Chris OK, so the temperature measured by PandaTempDisplay is as I guessed. I was not the only one who thought that RTC support in the ROM has been broken for a long time: See Chris Hall’s post of 26th Feb that started this thread and Chris’s post in response that says that support was broken for about a month. I don’t remember any announcement being made unless buried in these forums and there is a lot here to go through if you are not sitting in front of a computer all day! If Chris Hall doesn’t know about it, I am sure I won’t! :-) |
Chris Evans (457) 1614 posts |
“See…Chris’s post in response that says that support was broken for about a month. " I followed that up with a correction to say I had been talking about the Pi RTC support, not the PandaBoard. Also a clarification. RTC support has been in builds that Willi has done and supplied by us to purchasers of PandaROs but was only added to ROOL builds since 2013-11-12. |
Chris Evans (457) 1614 posts |
David, Received your RTC board this morning thanks, and it was indeed a fault with the crystal. This has now been resolved. I’ve tested the board and time does now continue to tick by when the Pandaboard is turned off! I’ll post it straight back to you. Apologies for the inconvenience. pp. Chris |
David R. Lane (77) 766 posts |
Received RTC board yesterday, thanks. Yes, it keeps beating when the Pandaboard is off. Even overnight the RTC didn’t sleep and Alarm showed the correct time in the morning! |
Steve Pampling (1551) 8170 posts |
Remote diagnosis: dry joint on the connections to the crystal. Resoldered. If Chris says yes I tick a small box. |
Andrew Conroy (370) 740 posts |
I was able to repair it. |
Pages: 1 2