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.

CC2642R: Change XOSC HF cap array value at runtime

Part Number: CC2642R

I am using TI SDK v5.10 for developing my BLE based peripheral application. I have a requirement on Cap Array detaila.

The CCFG has "SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA    0xFF" defined which is nothing but no delta. 

However, I need to change "XOSC HF cap array" at runtime in the application. Based on the other threads in the e2e forum, I have got a procedure in brief to understand how this can be achieved.

#include DeviceFamily_constructPath(driverlib/osc.h)

uint32_t key = Hwi_disable();
OSC_AdjustXoscHfCapArray(delta);
OSCHF_SwitchToRcOscTurnOffXosc();
OSCHF_TurnOnXosc();
while (!OSCHF_AttemptToSwitchToXosc()) {}
Hwi_restore(key);

Is that good enough to change the cap array delta at runtime?

Based on the link below, the delta can be set between 0-63, is it still correct? However, I see the CCFG allows range from -127 to 127 in HEX.

dev.ti.com/.../group__osc__api.html