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.

为何我的蓝牙不能正常收发数据了?

Other Parts Discussed in Thread: CC2541

芯片:CC2541

协议栈:1.4.0

IAR版本:10.20

问题:

一个月前使用iar8.20完成了蓝牙的功能,能正常收发数据。

中途由于项目需要iar升级到了10.20的版本。现在再去编译之前的软件,出现

Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0xe more bytes needed.错误。

后经过修改堆栈大小,将IDATA从0xC0修改成0xB2,才结束这个错误。

后面进行编译和运行,通过BLE Device Monitor软件查看服务,开启电池通知服务后无任何返回(代码内5s一次数据)

使用自定义的服务使能通知,返回错误

这些问题,会不会是因为iar的版本过高造成的?因为协议栈的版本是8.20.如果不是那会是哪些原因造成的?