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

app: SOFTDEVICE: ASSERTION FAILED PC value is: 0x00012CFA.

Use central-peripheral programs.First advertising and then scan.It was found that during the adveristing the program was running normally, but theadveristing signal could not be found.Once scanning in adveristingtimeout event, error app: SOFTDEVICE: ASSERTION FAILED gengrate. PC value is: 0x00012CFA.What could be causing this?How to fix it?thank you!!

Parents Reply
  • I was solved this problem。This is the way. thanks.

    void lfclk_calibrate()
    {

    NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_RC << CLOCK_LFCLKSRC_SRC_Pos);

    NRF_CLOCK->EVENTS_LFCLKSTARTED = 0;
    NRF_CLOCK->TASKS_LFCLKSTART = 1;

    while(NRF_CLOCK->EVENTS_LFCLKSTARTED == 0);


    NRF_CLOCK->EVENTS_DONE = 0;
    NRF_CLOCK->TASKS_CAL = 1;

    while(NRF_CLOCK->EVENTS_DONE == 0);

    NRF_CLOCK->TASKS_HFCLKSTOP = 1;
    }

Children
No Data
Related