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.