External crystal oscillator clock signal is intermittent during bluetooth working in nrf52833

I was using nrf52833 for AOA test. The example works quite good, but we found external crystal oscillator clock signal is intermittent. I want to know if cpu will go into sleep mode in AOA advertising and scanning, and if entering sleep mode will change the clock source. If the clock source is changed, how can I prevent this situation. Thanks.

Parents Reply
  • I assume you are using the nRF Connect SDK (NCS) and not the nRF5 SDK? Please let me know. Assuming you are using NCS:

    To keep the HF clock running, I suggest you look into Zephyr's clock control API.

    https://github.com/nrfconnect/sdk-nrf/blob/main/samples/peripheral/radio_test/src/main.c#L11-L41

    This should ensure that Zephyr doesn't shut off the clock when the BLE stack is done using it.

    That being said, I am not convinced this will make any difference, other than a higher current consumption. I don't know what you mean by "better test results". What sort of issues are you seeing? The HFCLK is not used for timekeeping. That would be the LFCLK. But the HFCLK is used by the BLE stack. However, I have not seen a similar request before, so, therefore, I am not sure whether this will make any difference.

    Best regards,

    Edvin

Children
Related