Part Number: CC2652R7
Tool/software:
I am currently working on my own project with BLE. My project is mostly a "multi-role" example from the SDK. But I am using FreeRTOS, not TI-rtos.
Everything works fine now.
My problem is that I want to change the values of the SEC register in the RTC register during program execution.
But I can't do it correctly, because something changes the CH0COMP register in the RTC after I wrote to the SEC register. I don't understand the logic of the changes. At the same time, the device almost always does not go on air after this. But if I successfully maintain the SEC register, a more or less correct value is written to the CH0CMP register and I see the device on air.
When the device is on air, I see that the TimerP_SetThreeshold function is constantly called and the CH0COMP register is updated. If I set my own value in AON_RTC SEC, it may not be called anymore.
Most likely, this is due to the osal system and the osal_run_system function. I am sure that BLE somehow uses the RTC module for its purposes. But there is no exact understanding yet. Please help me how to update the RTC SEC register correctly. What other functions and where should I call so that the RF part continues to work correctly?
P.S. I have already asked a similar question, but I did not find an answer. I was advised to study the documentation, but there is nothing there that can help me. I was told that these registers are controlled by TI-RTOS and the user should not touch it, but I need to. I am sure that it is possible to somehow forcibly update the RTC registers correctly, or I need to find proof that this is impossible.
Thanks for any help.