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

  • The freertos in our SDK uses RTC1 as a tick clock. From portmacro_cmsis.h line 120:

    /* RTC register */
    #define portNRF_RTC_REG        NRF_RTC1
    

    By using the RTC instead of Systick, we can implement tickless idle mode.

    Are you using the freertos port provided in our SDK, or have you made your own port?

    @RK, in my config the i have the following definition of RTC2_CONFIG_IRQ_PRIORITY: APP_IRQ_PRIORITY_LOW =_PRIO_APP_LOW = 6

Reply
  • The freertos in our SDK uses RTC1 as a tick clock. From portmacro_cmsis.h line 120:

    /* RTC register */
    #define portNRF_RTC_REG        NRF_RTC1
    

    By using the RTC instead of Systick, we can implement tickless idle mode.

    Are you using the freertos port provided in our SDK, or have you made your own port?

    @RK, in my config the i have the following definition of RTC2_CONFIG_IRQ_PRIORITY: APP_IRQ_PRIORITY_LOW =_PRIO_APP_LOW = 6

Children
No Data
Related