This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652P: cc2652p RTC question

Part Number: CC2652P

Question 1:When using  CH0 of the cc2652p RTC timer, because the program created a clock during startup, the callback function cannot be updated when it is used again, because the clock uses a global value instead of a handle in the callback function.

1) Using the path for the first time

Power_init()->ClockP_construct()->ClockP_start()->TimerP_construct()

The screenshot is as follows:

When using this function for the second time, the TimerP_handle variable cannot be updated, and the callback function cannot be replaced because the callback function uses a global variable instead of a handle。

Question 2:When using RTC's ch2 continuous mode, the callback function does not trigger according to the set comparison value, but triggers every tick。

Channel 2 settings:

Set comparison value:0x800000

Register status