RTC Fault

Dear Team,

R7FS5D57C3A01CFP MCU- is used.. We are experiencing a problem with the RTC in one of our products. When we set the RTC, there is no drift, and it counts correctly; however, two issues occur:

  1. When we set the time to 11:58, it should update to 12:00 after 2 minutes, but instead, it resets to 00:00.
  2. The date does not change.

We have verified that there is no issue with the crystal; the frequency measurements are shown in the images below. Despite this, we replaced the crystal, but the issue still persists.

I would appreciate your help in understanding the cause of this issue and finding a solution. Thank you.

Best Regards

Parents Reply
  • As mentioned if the value in an RTC register after a reset is given as x (undefined bits) in the list, it is not initialized by a reset. When RTC enters the reset state or a low power consumption state during counting operations, for example while the RCR2.START bit is 1, the year, month, day of the week, date, hours, minutes, seconds, and ***-Hz counters continue to operate. 

    So the option should be configured according to the user application

    When the "RTC hardware in open() call" value to "No", the following if-statement will not be executed:

    The r_rtc_set_clock_source function clears START bit to 0 and sets the hour mode bit:

    It is a bit strange the problem is this one device, but does every RTC API return with SSP_SUCCESS ?

Children