mirror of https://github.com/ARMmbed/mbed-os.git
f749a2990b
When initializing the RTC on Kinetis devices, handle the case where the time overflow interrupt is pending and the case where the time alarm flag is pending. These flags persist across reset and if not handled will cause a crash when powering up the low power ticker. This problem manifested as a lp_ticker test failure on the K22F and K64F on CI only when running a nightly. This problem has been present but was made obvious by PR #4094 which configures all tickers to interrupt at least every MBED_TICKER_INTERRUPT_TIMESTAMP_MAX_DELTA (~31 minutes). This caused the RTC alarm to fire 31 minutes after the lp_ticker or lp_timeout test and caused the next run of the lp_ticker test to crash on boot. |
||
---|---|---|
.. | ||
TARGET_K20XX | ||
TARGET_KLXX | ||
TARGET_MCUXpresso_MCUS | ||
mbed_rtx.h |