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
  • We are using FreeRTOS, BLESTACK and RTC.

    FreeRTOS uses SystemCore Clock,RTC0 is blocked by the Soft-device.

    We are trying to use RTC1/RTC2 for tick events. When we try to enable the tick event for RTC1 or RTC2 we are getting below shown error. Below Error was displayed by enabling DEBUG.

    ID=4097 pc=121272 info=2048,

    I am assigning RTC2_CONFIG_IRQ_PRIORITY

  • What do you mean by 'SystemCore Clock'? Do you mean SysTick? Which chip are you using, nRF51 or nRF52? Systick doesn't tick when the device sleeps so that won't work, the RTOS ports for nRF5x use RTC1 because nRF51 doesn't have Systick and nRF52 does but it's not usable as an always-on timer.

    RTC2_CONFIG_IRQ_PRIORITY is a define, what have you defined it as?

Reply
  • What do you mean by 'SystemCore Clock'? Do you mean SysTick? Which chip are you using, nRF51 or nRF52? Systick doesn't tick when the device sleeps so that won't work, the RTOS ports for nRF5x use RTC1 because nRF51 doesn't have Systick and nRF52 does but it's not usable as an always-on timer.

    RTC2_CONFIG_IRQ_PRIORITY is a define, what have you defined it as?

Children
No Data
Related