This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Which part of library does S130 start HFClk automatically?

Hi, Could you please help me identify the file and function name that is used by the S130 softdevice to start HF clock automatically for ble advertising? I can see that Clock HAL : developer.nordicsemi.com/.../a00904.html does this, but where are these nrf_clock functions called from? When I look for "nrf_clock" in my BLE example project, it does not come up with any reference finds. (I can find "SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);" inside ble_Stack_init, though.) Thanks.

Parents
  • Most likely Softdevice itself does this after you call SOFTDEVICE_HANDLER_INIT. You won't see actual call because SD is supplied as a binary. All sd_ prefixed functions are in fact only causing software interrupts that are intercepted by the binary code.

  • Yes, this is correct. The start and stop of the HF crystal happens inside the softdevice. This is not triggered by an application function.

Reply Children
No Data