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

  • .. actually looking at the nRF52 FreeRTOS port I'm not entirely sure what it does use as a timer source. The notes don't say, it does define the portable systick macro as RTC1 as the nrf51 port does but without following all the includes I can't work out whether it manages to use systick after all. I don't quite see how it does, as Systick doesn't tick when the processor sleeps, which means there's nothing to wake tasks.

Reply
  • .. actually looking at the nRF52 FreeRTOS port I'm not entirely sure what it does use as a timer source. The notes don't say, it does define the portable systick macro as RTC1 as the nrf51 port does but without following all the includes I can't work out whether it manages to use systick after all. I don't quite see how it does, as Systick doesn't tick when the processor sleeps, which means there's nothing to wake tasks.

Children
No Data
Related