CC3120驱动移植到MCU,调用sl_start(0,0,0)返回值1,能说明什么问题,该函数有返回值能不能说明MCU与CC3120的SPI接口驱动是通的,还有出现返回值为1,能说明我的驱动那一块有问题,我改排查哪里。
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.
CC3120驱动移植到MCU,调用sl_start(0,0,0)返回值1,能说明什么问题,该函数有返回值能不能说明MCU与CC3120的SPI接口驱动是通的,还有出现返回值为1,能说明我的驱动那一块有问题,我改排查哪里。
是不是SPI问题不好说,但是你这个问题是同步问题。
你什么平台?freertos? 你先去用示波器抓一下你的SPI波形看一下是否良好。如果你是FreeRTOS的平台。可以参考我们SDK里面的:
C:\ti\simplelink_sdk_wifi_plugin_2_40_00_22\examples\rtos\MSP_EXP432P401R\demos\network_terminal\freertos
下载和参考这个SDK 需要的工具:
CCS:http://www.ti.com/tool/CCSTUDIO
\simplelink_sdk_wifi_plugin_2_40_00_22: 
msp432 SDK :
你是不是RTOS?
sl_Task() needs to be called to receive async events. In the case of the simplelink API calls, if sl_Task() isn't called in a timely manner when an sync event is expected (in the case of sl_Start() for example) the operation can appear to have timed-out. I believe this is what is happening by calling the functions in your wifi_process() then having many other processes that don't call sl_Task() before returning to the call at the beginning of the loop.