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

nRF52810 clock configuration

Dear All,

We have designed our custom board based on nRF52810 chipset. wehave not used 32.768khz oscilator. it seems in code default configauration is with crystal. so please suggest what changes i need to make in the code to use internal clock in SDK14.2 and SDK15. please inform in which file i need to make the changes.waiting for earliest reply .

Thank You

PSK

Parents
  • Hi,

     

    In your sdk_config.h, you need to set these three defines in order to use the internal 32k RC oscillator:

    // </h> 
    //==========================================================
    
    // <h> Clock - SoftDevice clock configuration
    
    //==========================================================
    // <o> NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
     
    // <0=> NRF_CLOCK_LF_SRC_RC 
    // <1=> NRF_CLOCK_LF_SRC_XTAL 
    // <2=> NRF_CLOCK_LF_SRC_SYNTH 
    
    #ifndef NRF_SDH_CLOCK_LF_SRC
    #define NRF_SDH_CLOCK_LF_SRC 0
    #endif
    
    // <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
    #ifndef NRF_SDH_CLOCK_LF_RC_CTIV
    #define NRF_SDH_CLOCK_LF_RC_CTIV 16
    #endif
    
    // <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
    // <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
    // <i>  if the temperature has not changed.
    
    #ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
    #define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
    #endif

     

    Best regards,

    Håkon

  • Hi, I'm having nearly the same issue. I am using s132 6.1.1 with SDK 15.2, my code works completely fine on Development Kit but it doesn't boot up on our custom board which doesn't have a 32Khz oscillator. I tried debugging with Keil, it goes to system_reset every time it starts to work. What should I do?

    Thanks.

Reply Children
Related