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.

CC2640R2F: 在提供的例程中加入其他数据处理的函数后,手机连接CC2640R2F的蓝牙显示超时

Part Number: CC2640R2F

我在历程中如下函数(static bStatus_t SerialPortService_WriteAttrCB( uint16 connHandle, gattAttribute_t *pAttr,uint8 *pValue, uint16 len, uint16 offset,uint8 method ))中添加了数据处理的函数(QR_Encode)后,手机能发现CC2640R2F的蓝牙,但是连线超时;

经过检查,数据处理函数QR_Encode中包含了一个全局变量,只要对全局变量进行任何操作就会导致蓝牙连接超时