52832,SDK12.0.0
I met such a situation: In the use of JLink burning program or air upgrade, after the completion of the program card died in initialization low-frequency crystals.
"sd_softdevice_enable(p_clock_lf_cfg, softdevice_fault_handler);"
52832,SDK12.0.0
I met such a situation: In the use of JLink burning program or air upgrade, after the completion of the program card died in initialization low-frequency crystals.
"sd_softdevice_enable(p_clock_lf_cfg, softdevice_fault_handler);"
You need to modify the NRF_CLOCK_LFCLKSRC in the pca10040.h or custom_board.h to the following
#define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_RC, \
.rc_ctiv = 16, \
.rc_temp_ctiv = 2, \
.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM }
I apologize, I referred to an incorrect register value( 0x8001) and corrected my comment. The default value of the LFCLKSRC is 0x00000000 so if you start the LFCLK using the TASKS_LFCLKSTART task then you will read 0x00010000. I still do not understand why you need to check this.
I apologize, I referred to an incorrect register value( 0x8001) and corrected my comment. The default value of the LFCLKSRC is 0x00000000 so if you start the LFCLK using the TASKS_LFCLKSTART task then you will read 0x00010000. I still do not understand why you need to check this.