I have my own BLE application for CC2652R7, which I created based on a multi-purpose example from SDK version 6. I use FreeRTOS. When setting up the system, I want to set my value to the RTC register. While studying this issue, I had several questions.
1. My main problem is that there are some "magic numbers" that break the BLE stack. For example, if I write SEC 0 or some current time in the register, I will most likely be able to find my device when scanning the ether. But when recording the "magic" number, the device appears on the air for a second, I can notice it in the list on the phone in the message "nRF connect", but after a short time the device disappears from the air and I can no longer find it. If you restart the device, the situation will repeat. The message will appear on the air for a second and disappear forever. If you run an on-air scan on a device in an idle state (my application is based on multirole), then the main BLE stream does not receive promotional events from other devices from the environment. 
2. Why does the AON driver have a SecGet function, but no SecSet? What is the reason for this?
Can you help me with advice on which way to dig? I want to change this particular register or find out the exact reason why I can't do it. Maybe libraries use this register and they don't like something? Because I don't have the source code of the Ble stack, and I have no idea what it does inside (I think this is classified information?). I have read the technical documentation and found no information that any special actions are being taken to record before using the SEC registry. I have been reading the forums and have not found any information on this issue. Links to migration or background information in other questions are slightly different from what I have.
Perhaps writing to the RTC register can be done only after something important? Something like just after setting up the cache or something else?