Hi ,
I am working on project which is based on nrf9160 Development board.
could you please verify these points-
1. I am sharing the snapshot of the registers before going through the function nrf_clock_lf_src_set(NRF_CLOCK, CLOCK_CONTROL_NRF_K32SRC);
According to the document default behavior is to run on 64 MHz RC oscillator, status of HFCLKRUN register should get trigger before going to the nrf_clock_lf_src_set(NRF_CLOCK, CLOCK_CONTROL_NRF_K32SRC); function, But the status in register is not triggered. how we will ensure that it is working on which clock source before going to the function nrf_clock_lf_src_set(NRF_CLOCK, CLOCK_CONTROL_NRF_K32SRC).
According to the document nrf_clock_lf_src_set(NRF_CLOCK, CLOCK_CONTROL_NRF_K32SRC) can't be called when low frequency clock is running, that means it is working on different frequency before calling this function so the status get updated in register but it is not updating the status of registers.
2. Before going to the function nrf_clock_lf_src_set(NRF_CLOCK, CLOCK_CONTROL_NRF_K32SRC) the status of register are -
after going through the function nrf_clock_lf_src_set(NRF_CLOCK, CLOCK_CONTROL_NRF_K32SRC) the status of the register are-
3. How we will change the clock source to different clock ?