Description of my system:
Hardware:nRF51822, pca10001
Software: SDK5.20, S120
If i first call the function ble_stack_init();
and then i open the LFCLK first by set
NRF_CLOCK->LFCLKSRC = 1;
NRF_CLOCK->TASKS_LFCLKSTART = 1;
the program will into a HardFault_Handler, but in inverted order ,the HardFault will not happen.
if i call the sd_nvic_SetPriority,it also into a HardFault_Handler.
so i have no ideas to solve it.
Edit: format, question.