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

Invalid state when trying to use SD, BSP and RTC2.

Hi,

I'm trying to use RTC2 as a custom timer using the RTC Driver, initialised as :

nrf_drv_rtc_t erx_timer_rtc = NRF_DRV_RTC_INSTANCE(2);

But when the BSP library or BLE API's try to create their own app_timer then:

The BSP library returns 'NRF_ERROR_INVALID_STATE'' and

'ble_conn_params_init'  returns NRF_ERROR_INTERNAL

I understood that the SD used and protected RTC0 and the APP_TIMER library used RTC1 leaving RTC2 free for the user?

Is this not the whole picture or what am I missing?

Target: nrf52832, S132 & SDK 14.2.0

Thanks

Wayne 

Related