Hi,
We have an issue which seems very similar to https://community.nxp.com/t5/MCUXpresso-SDK/rt1050-RTC-cannot-start/td-p/1313153 where on startup the call to SNVS_HP_RTC_StartTimer() does not return because the attempt to set the RTC_EN bit in the SNVS HPCR does not succeed (the bit remains 0, so the loop in the function never terminates).
We have checked that our 32kHz crystal is running OK and checked that the VDD_SNVS_IN supply is OK.
However, this only occurs when we are running in debug mode connected via a Segger j-link debugger. When running the code without the debugger everything is fine.
Thanks for any help you can give with this.
I have this issue with VSCode and gnu-debugger
Hi @Steve23 ,
I tested by MCUXpresso and jlink. It works fine, never pending by this bit. What IDE do you use?
Regards,
Jing
Hi @jing,
Thanks for your response, we are also using MCUXpresso with a j-link.
However, we have been doing further investigations on this and have discovered that the issue seems to only occur when running an older version of the MCUXpresso. The version where this problem occurs for us is 11.3.1 but it does not occur on 11.5.0 or the latest 11.6.0.
So we have updated the IDE and it seems to have resolved the problem.