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.
您好!
我的基于 simple_Peripheral -的 CC2652PSIP 项目在运行时尝试控制 ODID ADV 的射频功率。 它不是 ISR:
void simple_peripheral_SetPower (void *pValue)
{
bStatus_t tmp_status =成功;
tmp_status = GapAdv_disable (advHandleLegacy);
Task_sleep (100);
tmp_status = GapAdv_setParam (advHandleLegacy、GAP_ADV_PARAM_TX_POWER、pValue);
Task_sleep (100);
tmp_status = GapAdv_enable (advHandleLegacy、GAP_ADV_ENABLE_OPTIONS _USE_MAX、0);
Task_sleep (100);
}
想法是停止蓝牙改进、调整射频功率、然后使用新功率重新启动。
固件在 GapAdv_disable (advHandleLegacy)上冻结、不从此函数返回。 什么可能出错、或者应该更改什么?
谢谢。
Alex
尊敬的 Alex:
您是否可以在调试器打开的情况下运行此程序,并尝试跳转到函数以查看 GapAdv_diable()函数的挂起位置。
此致、
Rogelio