Index: RTC.c =================================================================== diff -u -r651201a1d12251185f6bbc0aa33e4577a2048922 -rea50b65284ae5683fd7e6b89fd8134cf46777722 --- RTC.c (.../RTC.c) (revision 651201a1d12251185f6bbc0aa33e4577a2048922) +++ RTC.c (.../RTC.c) (revision ea50b65284ae5683fd7e6b89fd8134cf46777722) @@ -769,7 +769,6 @@ SET_ALARM_WITH_2_U32_DATA( ALARM_ID_RTC_BATTERY_LOW, controlReg3, RTC_REG_3_BLF_MASK ); hasTestPassed = FALSE; } - #endif return hasTestPassed; } @@ -1107,14 +1106,12 @@ { RTC_EXEC_STATE_T result = RTC_EXEC_STATE_WAIT_FOR_POST; -#ifndef DONT_SKIP_NV_POST if ( RTCSelfTestState == RTC_SELF_TEST_STATE_COMPLETE ) { - result = RTC_EXEC_STATE_IDLE; + // After POST is finished, first read the current time so there is one time stamp + // available in the memory + result = RTC_EXEC_STATE_READ; } -#else - result = RTC_EXEC_STATE_IDLE; -#endif return result; }