in ble_app_ancs application,when config RTC0 before Running SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false) function.then run in this function will cause error, and jump to HardFault_Handler .
in ble_app_ancs application,when config RTC0 before Running SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false) function.then run in this function will cause error, and jump to HardFault_Handler .
The RTC0 is used by the softdevice and you will not be able to use it once you start the softdevice. Use RTC1 and you should run the softdevice init first and then use the softdevice safe commands to initiate the RTC and accessing the LF resources.
Please have a look in chapter 10.2 of the S110 softdevice specification.
Also, the softdevice safe commands can be found in the SoC library.
The RTC0 is used by the softdevice and you will not be able to use it once you start the softdevice. Use RTC1 and you should run the softdevice init first and then use the softdevice safe commands to initiate the RTC and accessing the LF resources.
Please have a look in chapter 10.2 of the S110 softdevice specification.
Also, the softdevice safe commands can be found in the SoC library.