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

Zigbee Light Switch Example running with internal RC

Is it possible to run the Zigbee Light Switch example with the internal RC.?

On the sdk_config.h I have changed the following:

#define NRFX_CLOCK_CONFIG_LF_SRC 0

But the device will get stuck at ZB_INIT() call, specifically on this function:

Any help is most welcome!

Thanks

Parents
  • Hi

    It should not be an issue using the internal RC oscillator in Zigbee projects. However, you have to do a few more changes in your sdk_config.h file in order to enable the RC oscillator. Please make sure that the following defines are changed to the values below:

    // <o> CLOCK_CONFIG_LF_SRC  - LF Clock Source
     
    // <0=> RC 
    // <1=> XTAL 
    // <2=> Synth 
    // <131073=> External Low Swing 
    // <196609=> External Full Swing 
    
    #ifndef CLOCK_CONFIG_LF_SRC
    #define CLOCK_CONFIG_LF_SRC 0
    #endif
    
    // <q> CLOCK_CONFIG_LF_CAL_ENABLED  - Calibration enable for LF Clock Source
     
    
    #ifndef CLOCK_CONFIG_LF_CAL_ENABLED
    #define CLOCK_CONFIG_LF_CAL_ENABLED 1
    #endif
    
    // <o> CLOCK_CONFIG_IRQ_PRIORITY  - Interrupt priority
     
    
    // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
    // <0=> 0 (highest) 
    // <1=> 1 
    // <2=> 2 
    // <3=> 3 
    // <4=> 4 
    // <5=> 5 
    // <6=> 6 
    // <7=> 7 
    
    // <o> NRFX_CLOCK_CONFIG_LF_SRC  - LF Clock Source
     
    // <0=> RC 
    // <1=> XTAL 
    // <2=> Synth 
    // <131073=> External Low Swing 
    // <196609=> External Full Swing 
    
    #ifndef NRFX_CLOCK_CONFIG_LF_SRC
    #define NRFX_CLOCK_CONFIG_LF_SRC 1
    #endif

    Best regards,

    Simon

  • Hi Simonr,

    Thanks for your reply. I believe the suggested changes are suitable for a project that uses a softdevice implementation. The Zigbee Light Switch example uses the ZBOSS library. The options mentioned are not listed on the sdk_config.h file of the Zigbee Light Switch example. Could you try to modify the code as I suggested and run the project on debug mode? Can you see if the micro executes any further than the ZB_INIT() function or it gets stuck there?

    Many thanks 

Reply
  • Hi Simonr,

    Thanks for your reply. I believe the suggested changes are suitable for a project that uses a softdevice implementation. The Zigbee Light Switch example uses the ZBOSS library. The options mentioned are not listed on the sdk_config.h file of the Zigbee Light Switch example. Could you try to modify the code as I suggested and run the project on debug mode? Can you see if the micro executes any further than the ZB_INIT() function or it gets stuck there?

    Many thanks 

Children
No Data
Related