We have an issue where SVNS RTC alarm runs at half speed during sleep compared to when running. Other than this, the wake up functions as expected. I cannot see any documentation on clock scaling for the RTC and I am under the impression it should just run from the 32kHz XTAL always. Are there any settings that affect this feature?
已解决! 转到解答。
Two problems have been found in my project:
Solution: Clear interrupt flag on used interrupts always, even if nothing else is done!
Two problems have been found in my project:
Solution: Clear interrupt flag on used interrupts always, even if nothing else is done!
Hi Victor,
After using the SNVS RAM to store reset reasons, it seams that it is not the SNVS waking the device at all, but rather the device entering hard fault on shutdown and triggering watchdog, which just happens to be twice the sleep period.
If i find something relevant to the how I am setting up SNVS that is causing this issue, I will update this thread for future reference.
Regards,
Chris
Hello Christopher,
As long as the external oscillator is present the RTC will always run from there.
Are you using one of our evaluation boards to make this test? Could you please share a project with the minimum requirements so I can replicate this behavior on my side?
Regards,
Victor
Hi Victor,
Thanks, this is good to know. Project is currently running on a custom board, however, I can get the MIMXRT1064-EVK board so will try it on there. All I am doing is setting a 15 second alarm then putting the device into stop mode using LPM_PreEnterStopMode() and LPM_EnterSuspend() from the SDK provided with MCUXPresso IDE.
Regards,
Chris