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

RTC1 handler issue - Error if RTC1 is enabled.

RTC 1 cannot be enable (errors with app_timer.c): Trying to resolve RTC errors

Using windows 10 OS, and SES v5.40.

I am using nRF52833 device in my project along with nRF5_SDK_for_Thread_and Zigbee_v4.1.0_32ce5f8 SDK. There is RTC0 enabled and RTC1 and RTC2 disabled at present (somewhere in code it is mentioned RTC0 for soft device and RTC1 for app_timer.c library so trying to invoke RTC1).

Now, I tried to enable RTC1(present in sdk_config.c) but it throws error

And also I can see that there are no handlers for RTC0 and also for RTC 2, and if I comment this RTC1_IRQHandler function part the project builds.

  • Where is this function linking to?
  • It is not been called anywhere in the entire project
  • Is that function not actually required?
  • Or it is referring to some other library file?

I tried to do something that is mentioned in this link but that doesn’t help(RTC1 handler issue) - https://devzone.nordicsemi.com/f/nordic-q-a/54713/beacon-and-rtc-combination-errors

And related to RTC 2:

I saw in some development zone link that says things worked with RTC2 well when compared to RTC1.

If I try to enable RTC2 I get this error. And it is again related to RTC2_IRQHandler in alarm.c.

 

Parents
  • Hi, thanks for you time on this..

    I am able to disable RTC0 - which is not required for the current code.

    RTC1 is running for app_timer (all timer functions are controlled)

    RTC2 - is used for thread stack.

    Note: Disabling or enabling in sdk_config.h doesnt make any difference, if thread stack is used then RTC2 is enabled(possibly to be disabled in sdk_config.h).similarly, if RTC1 is used for app_timer library.  

Reply
  • Hi, thanks for you time on this..

    I am able to disable RTC0 - which is not required for the current code.

    RTC1 is running for app_timer (all timer functions are controlled)

    RTC2 - is used for thread stack.

    Note: Disabling or enabling in sdk_config.h doesnt make any difference, if thread stack is used then RTC2 is enabled(possibly to be disabled in sdk_config.h).similarly, if RTC1 is used for app_timer library.  

Children
No Data
Related