RTC wraps around in MBED-OS Ver 5.9 but works fine in older version

17 Aug 2018

When I import the example from the following:

https://os.mbed.com/docs/v5.7/reference/rtc.html

It works fine. When I update the mbed-os revision (in the online IDE/Compiler) it counts up but resets to zero at 35 minutes and 47 seconds (the same amount of time needed to fill a 32 bit counter when incrementing by 1 usec at a time).

I've tried finding where the difference might be in the platform code but have come up empty.

How can I use the newest version of mbed-os without it corrupting the RTC.

17 Aug 2018

Hi Dan,

Thank you for raising this issue. Could you please tell us what target you are using? We'll then try to find you a work around.

Regards,

Ralph, Team Mbed

22 Oct 2018

The target is the MAX32630FTHR dev board.

23 Oct 2018

Doing some deeper digging...I noticed that rtc_api.h changed dramatically from mbed version 5.7 to version 5.9. I still can't figure out why the RTC would reset but I'm guessing it is related to some change in this file.