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

what freq for softdevice should i use?

hi im working with nrf51422 and keil and s130

my external crystal is a 32768 and 16 mega

for my soft-device witch one should i use

    // Initialize SoftDevice.
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_500_PPM, NULL);

in debug mode it stuck in this line that i post above

  • FormerMember
    0 FormerMember

    The clock source parameter in SOFTDEVICE_HANDLER_INIT(..) should match the low frequency clock source on your board and its accuracy. The accuracy should be rounded up. It means that if the accuracy on your clock source isn't among the defines in the SDK, you should choose the closest one with worse accuracy. If you are using an external crystal, it is also important that the crystal is within the specifications in chapter 8.1.5 in the nRF51x22 Product Specification.

    • For an external low frequency crystal: NRF_CLOCK_LFCLKSRC_XTAL_xx_PPM

    • For the internal RC oscillator: NRF_CLOCK_LFCLKSRC_RC_xxx_PPM_xxxMS_CALIBRATION

Related