This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52832 LFCLK external signal and soft device

Hello,

I try to set up an external signal for the LFCLK on a nrf52832. From this question:

  • I know the nrf52832 can do this (signal on XL1 pin, XL2 grounded).
  • I know I must set the bits "bypass" and "external clock" in LFCLKSRC register.

But I don't know how to set these bits through the SDK functions, with a running soft device.

  • Defines like CLOCK_LFCLKSRC_BYPASS_xxx and CLOCK_LFCLKSRC_EXTERNAL_xxx dont exist in the SDK 11.0.0.
  • The function softdevice_handler_init() (through SOFTDEVICE_HANDLER_APPSH_INIT()) hasn't the required parameter in the nrf_clock_lf_cfg_t structure.
  • The function softdevice_handler_init() forces LFCLK configuration and the LFCLKSRC register can't be set after the soft device initialization.

Can someone give me a valid code example?

Thanks !

Related