This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to use CLOCK_LFCLKSRC_SRC_RC?

I check the function spec that we can use use 32kHz RC as LFCLK, so I have no external 32k crystal connected with XL1/XL2 on my board. I have set
NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_RC << CLOCK_LFCLKSRC_SRC_Pos); And SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_8000MS_CALIBRATION, false);

I found that if I start a repeated timer that the interval is APP_TIMER_TICKS(x, APP_TIMER_PRESCALER) (Here x is less than 50), my system will power off soon. Can you let me know what is wrong I did? Thanks Frank

  • What do you mean that it will power off soon? Do you see that the application is running for a short amount of time or does it stop during your initialization? Do you access the LFCLKSRC directly after you have initialized the softdevice? Is it supposed to power off, but powers down too quickly compared to what you would expect?

  • Here I have found the root cause. It is nothing to do with LFCLK, It is just because that I set a test point which will triggle gpio connecte power LDO circuit. Thanks a lot.

Related