Bug 16503 - Real Time clock forgets time
: Real Time clock forgets time
Status: RESOLVED FIXED
Product: SB Radio
Classification: Unclassified
Component: Other
: Include FW version in comment
: PC Windows XP
: P4 normal (vote)
: 7.5.1
Assigned To: Ryan
: factory_mp
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-03 13:10 UTC by Ryan
Modified: 2010-11-02 14:10 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments
battery status log file with invalid date (915 bytes, text/plain)
2010-09-03 13:10 UTC, Ryan
Details
Boot logs of battery test units (1.22 MB, application/x-zip-compressed)
2010-09-08 15:25 UTC, Ryan
Details
Battery logs for baby booms (216.26 KB, application/x-zip-compressed)
2010-09-08 16:22 UTC, Ryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan 2010-09-03 13:10:29 UTC
Created attachment 6949 [details]
battery status log file with invalid date

FW9023 and MSP 1333

Somehow the date time value for the real time clock is getting glitched and the
unit is forgetting the time.

This was observed in the data logs for battery charge testing, where the date
was set to Dec 31 1969  the default when there is no valid time. 

After the unit updates via NTP it reports the correct time but if there were no
net connection it would appear as a RTC failure.

The condition is not due to failure the super cap backup of the MSP430 as this
was observed on a unit that had a battery installed which should never go to
ultra low power mode.  

 This may be the related to bug 16497 where it appeared to have lost the RTC
due to the super cap backup, but perhaps there is another cause.
Comment 1 Vahid Fereydouny 2010-09-08 14:46:11 UTC
Could you please provide some history of what was your test case and steps that caused the system to be in this state.
Comment 2 Ryan 2010-09-08 15:25:49 UTC
Created attachment 6953 [details]
Boot logs of battery test units

Attached is a ZIP of the serial boot logs for the units that have been running on battery with the AC power timer. Some of the data is old from testing the various MSP430 FW versions but the data at the end of the file is from as recent as 09-07-2010.
Comment 3 Ryan 2010-09-08 16:22:36 UTC
Created attachment 6954 [details]
Battery logs for baby booms
Comment 4 Ryan 2010-09-08 16:26:00 UTC
Mac
00:04:20:26:f6:93

Serial log 
Baby1_1381.txt

battery data
BatteryData_6f93
Comment 5 Vahid Fereydouny 2010-09-08 20:19:19 UTC
In the Battery Logs:
"
voltage: 13776 charge: 1883 temperature: 1330 chargestate: 3
Fri Sep  3 10:46:13 PDT 2010
voltage: 13655 charge: 1858 temperature: 1314 chargestate: 3
Wed Dec 31 16:00:32 PST 1969
voltage: 13594 charge: 800 temperature: 1296 chargestate: 1
Fri Sep  3 10:55:16 PDT 2010
"

From the serial console logs:

"
Enable MSP430
[   13.597173] Requesting msp430 firmware msp430-0005.txt(version 0.1)

[   13.603507] firmware: requesting msp430-0005.txt

[   13.984902] i2c-adapter i2c-1: ACK not received 

[   13.989590] Failed to issue the i2c read block command to MSP430

[   15.311130] i2c-adapter i2c-1: ACK not received 

[   15.315838] Failed to issue the i2c read block command to MSP430

[   16.610832] msp430: upgrade (-1 to 1333)

[   27.242337] msp430: upgrade complete (1333)
"

There are three times that we lost the date/time and there are three times that we had to initialize the MSP430.

In the prior shutdown of the Baby's there are i2c failures as follows:
[ 3499.267989] MXC Watchdog # 0 shutdown

[ 3499.272945] Power down.

[ 3499.277718] powering system down...

[ 3499.283231] i2c-adapter i2c-1: ACK not received 

[ 3499.289407] i2c-adapter i2c-1: ACK not received 

[ 3499.295567] i2c-adapter i2c-1: ACK not received 
.
.
.
Comment 6 Vahid Fereydouny 2010-09-08 20:59:33 UTC
I can reproduce a very similar behavior if I hold the power button down for almost a minute before I release it.
Do you remember how you were powering off the boards?
Comment 7 Vahid Fereydouny 2010-09-10 09:54:07 UTC
This seems to have been the test case:
bring up the Baby with external battery connected
Remove the AC
Wait for the 1/2 hour with no activity on Baby
The Baby shuts down itself.