I'm testing a custom application with the following configuration:
- Custom app based on the ble_app_pwr_profiling SDK example.
- Using SDK 13.1
- S140 SoftDevice s140_nrf52840_5.0.0-2.alpha_softdevice.hex
- PCA10056 development board, nRF52840
I've modified the example to configure RTC2 capture compare registers to generate PPI events to control GPIO and TWI events by using the nrf_drv_rtc_xxx functions from the driver library.
If interrupts are enabled on RTC2 (as they will be by default if using nrf_drv_rct_init function) then the expanded SOFTDEVICE_HANDLER_INIT macro call fails with error code 4097 (NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION).
If I configure RTC2 using driver functions but add a call to nrf_drv_common_irq_disable(rtc2.irq) after initialisation then the SoftDevice starts as expected.
Why does the S140 SoftDevice fail to start if RTC2 interrupts are enabled?
Is the RTC2 peripheral used by the S140 SoftDevice?