Hi,
I have a problem, like this fellow engineer here, but the solution is not applying for me.
Our firmware support different modes of operations. Mode changes are done through a Soft Reset. Bootloader starts before main application, and when it tries to do the nrf_drv_clock_uninit(), it will stuck and hang in stopping the LFCLK.(more accurately it will stuck and watchdog will kick in and reset the system.).
This problem only visible when I'm doing mode changes, and Soft Reset. It dose not exist running up from PIN Reset or Power On.
More specifically here:
nrf_clock_task_trigger(NRF_CLOCK_TASK_LFCLKSTOP); while (nrf_clock_lf_is_running()) {}
I'm sure, I am doing something wrong in main application. any idea where the problem may be hiding??
(nrf52-Dev kit, SDK v14.2, )
I'm suspecting that WatchDog would cause the problem, as turning on the watchdog my cause the LFCLK to be on all the time. (just a possible scenario, I am not sure about it)
If you have any idea, would be glad to hear. Thanks guys.