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.

CC2564B SPP 服务连接失败



用Stm32FL4系列,移植 TI_CC256X\NoOS\STM3240G-EVAL\Samples\SPPDemo 工程,修改了HCITRANS.c的底层Uart 函数接口。

在InitializeApplication中的OpenStack \SetConnect \ SetDisc \SetPairable 都返回 正常,修改了 GAP_Event_Callback 接口,加入PINCodeResponse,从而手机可以正确与CC2564B 配对。我的理解底层移植成功了。

应用层,在InitializeApplication后,调用OpenServer 接口,打开SPP服务器,返回成功,具体如下:

ParamSSP.NumberofParameters=1;
ParamSSP.Params[0].intParam=1;
 OpenServer(&ParamSSP);

但是,手机spp app在连接spp服务时总是提示失败,在线debug,Uart可以收到数据包,但是进不了SPP_Event_Callback。

协议栈层,工程包入了 如下封装库

Bluetopia_16_M4.fp_HW_FP.a

SS1BTGAP_16_M4.fp_HW_FP.a

IAR 编译时有warning:

HCI.o(Bluetopia_16_M4.fp_HW_FP.a) and 16 other objects have wchar_t size 16 bits

不知细节上忽略了哪个地方会造成spp服务失败?