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

How to configure a secondary clock crystal in Zephyr for NRF52833dk?

Hi all,

I am trying to interface a BLE mikrobus module onto a Yocto based Linux SBC. I need to use Zephyr's hci_uart example to flash it onto the module, the mikrobus BLE module is based on nrf52833dk. But it doesn't have a primary 32.678KHz crystal, so I need to use a secondary crystal. If anyone knows how to configure a secondary crystal in Zephyr for the hci_uart example and flash it onto the module, please help me out on this.

The code works fine when I use the EVK and fails to run on the Module. If anyone can help me on how to configure a second crystal it'll really be helpful to me.

Thanks in advance.

Parents Reply
  • These are the changes that the Vendor suggested I do on the nrfSDK.

    #ifndef  NRF_SDH_CLOCK_LF_SRC
    #define NRF_SDH_CLOCK_LF_SRC 0
    #endif
    
     
    #ifndef   NRF_SDH_CLOCK_LF_RC_CTIV
    #define  NRF_SDH_CLOCK_LF_RC_CTIV 5
    #endif
    
    
    #ifndef  NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
    #define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 10
    #endif
    
    
    #ifndef  NRF_SDH_CLOCK_LF_ACCURACY
    #define NRF_SDH_CLOCK_LF_ACCURACY 1
    #endif
    
     
    #ifndef  CLOCK_CONFIG_LF_SRC
    #define CLOCK_CONFIG_LF_SRC 0
    #endif
    
    
    #ifndef  NRFX_CLOCK_CONFIG_LF_SRC
    #define NRFX_CLOCK_CONFIG_LF_SRC 0
    #endif
    
     
    #ifndef  CLOCK_CONFIG_LF_SRC
    #define CLOCK_CONFIG_LF_SRC 0
    #endif

    Since there was no hci_uart example on nrfSDK, I had to switch to Zephyr. The vendor isn't sure about the changes that need to be done on Zephyr.

Children
Related