RTC Hours corruption

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RTC Hours corruption

765件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by GWS on Thu Mar 03 17:04:39 MST 2016
I have an LPC1768 running FreeRTOS/lwIP.
The RTC Hours reading becomes corrupted at random times, roughly once or twice per day.  The Minutes reading is always correct.

I put a data-breakpoint across the RTC memory space watching for writes.  The data-breakpoint does never triggers when Hours becomes corrupted, indicating that the RTC peripheral became corrupted spuriously, without a rogue software write.

Two different users reported a similar RTC problem on an LPC2378 in 2011 on the Keil forum: http://www.keil.com/forum/18413/rtc-problem-in-lpc2378/.  Unfortunately no clear solution was presented.

Has anyone seen this problem or have a solution for it?  Thank you for your help.
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

642件の閲覧回数
lpcware
NXP Employee
NXP Employee
bump
0 件の賞賛
返信

642件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by GWS on Thu Mar 10 11:57:00 MST 2016
An update:
After making some software changes, the RTC hour corruption is inexplicably gone.

The software changes included the following:
1) Now reading time only from "Consolidated time registers" (CTIME0, CTIME1, CTIME3).  Never reading time from "Time counter registers" (SEC, MIN, HOUR, etc.).
2) Reading time only from high-ish priority interrupt once per second.  Formerly time was read in the Idle task.
0 件の賞賛
返信