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 定义较大的全局变量导致蓝牙不能正常连接

做心率检测,开了2个600字节的数组用来存放传感器采集的值。并在SimpleBLEPeripheral_taskFxn里定义的一个定时Event,每50ms进来处理一次。

目前数组如果使用600字节来存放采集的传感器变量,则程序运行都没问题,只是蓝牙会连接出错(手机搜到蓝牙定义的服务没有或不全,只有一部分服务),要么就连接不上。

把这两个数组改小,比如改为300字节,蓝牙就正常了。

请问这是什么问题,我看了一下SRAM还有很多,是不能用这么大的全局变量吗?