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

RTC1 Initialisation with soft device

I am building my application up on the blinky free rtos. I want to use RTC and ble stack. i am initialising RTC1 first and ble stack stact.

The problem is that I am getting 0x1001 error code (which stands for "Incorrect interrupt configuration") from softdevice_handler_init() if I initialize soft device after the nrf_drv_rtc_init().

I didn't face any problem with the nRF5_SDK_11.0.0-2.alpha_bc3f6a0, problem is coming with nRF5_SDK_11.0.0_89a8197 only.

Thanks in advance!

Parents Reply Children
  • const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(2);

    nrf_drv_rtc_config_t p_config;
    
    p_config.interrupt_priority = RTC2_CONFIG_IRQ_PRIORITY; 
    p_config.prescaler = 32; 
    p_config.reliable = false; 
    p_config.tick_latency = RTC_US_TO_TICKS(NRF_MAXIMUM_LATENCY_US, CONCAT_3(RTC, 2, _CONFIG_FREQUENCY));
    
    err_code = nrf_drv_rtc_init(&rtc, &p_config, rtc0_event_handler);
    

    I am assigning RTC2_CONFIG_IRQ_PRIORITY

Related