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

  • @Anders - might be good to put that (use of RTC) in the SDK notes for the FreeRTOS port, the notes for the other RTOS port says it uses RTC1, but I don't think the FreeRTOS one does, or perhaps I totally missed it.

    The only reason I asked about the IRQ priority - well apart from that being the error code - is that during the switch from nRF51 to nRF52, and the removal of the old APP_PRIORITY macros, there was more than once I ended up with a hard-coded '1' for an IRQ priority in code intended for both platforms. That's high on the nRF51, but on the nRF52 it's a softdevice-used value. Since it's in the config file and that's subject to being edited a lot, actually checking the value being used seemed like a good idea.

Reply
  • @Anders - might be good to put that (use of RTC) in the SDK notes for the FreeRTOS port, the notes for the other RTOS port says it uses RTC1, but I don't think the FreeRTOS one does, or perhaps I totally missed it.

    The only reason I asked about the IRQ priority - well apart from that being the error code - is that during the switch from nRF51 to nRF52, and the removal of the old APP_PRIORITY macros, there was more than once I ended up with a hard-coded '1' for an IRQ priority in code intended for both platforms. That's high on the nRF51, but on the nRF52 it's a softdevice-used value. Since it's in the config file and that's subject to being edited a lot, actually checking the value being used seemed like a good idea.

Children
No Data
Related