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

How to use clock RC \51422

I intend to use RC oscillator instead of external crystal oscillator .

I modified code : from SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); to SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION, NULL);

The result is that my code can't run successfully. It seems that there is no clock source apply.

Please give me some tips ,thanks.

Parents
  • FormerMember
    0 FormerMember

    It should work fine to use the internal RC oscillator. When I test SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION, NULL) with SDK 10, it works fine.

    What does your application do? Do you see the same problem if you modify that line in one of the examples in the SDK?

    Which version of the SDK do you use?

  • We developed a trainer (FE-C) ,and ready to mass production .We want to reduce the coast . So we plan to discard external crystal oscillator . As related code is form example , I have never modified something about clock settings . I simply thought that, remove external crystal oscillator from our board and initialize softdevice with RC source , It can work as usual . I want to confirm one question , can you help me ? API SOFTDEVICE_HANDLER_INIT is the only entry to change oscillator resource ?? Is there some else settings is related to external crystal oscillator ,but I don't know ? If I can confirm this ,I should check my question by another way 。

    My English is poor ,Please forgive me .

Reply
  • We developed a trainer (FE-C) ,and ready to mass production .We want to reduce the coast . So we plan to discard external crystal oscillator . As related code is form example , I have never modified something about clock settings . I simply thought that, remove external crystal oscillator from our board and initialize softdevice with RC source , It can work as usual . I want to confirm one question , can you help me ? API SOFTDEVICE_HANDLER_INIT is the only entry to change oscillator resource ?? Is there some else settings is related to external crystal oscillator ,but I don't know ? If I can confirm this ,I should check my question by another way 。

    My English is poor ,Please forgive me .

Children
No Data
Related