cc3100移植后调用sl_Start(0, 0, 0)死循环在
retVal = _SlDrvSyncObjWaitTimeout(&g_pCB->ObjPool[ObjIdx].SyncObj,
INIT_COMPLETE_TIMEOUT,
SL_DRIVER_API_DEVICE_SL_START);
这可能是什么原因导致的?
SPI没有通?还是什么原因呢?
谢谢
Terry Han:
sl_Start(0, 0, 0)是启动CC3100-NWP,CC3100的网络处理器的SP.bin文件有没有烧录到SPI Flash中?
user4699890:
回复 Terry Han:
T.T我们没有加SPI Flash在CC3100上。我在spi_Read 和spi_Write打断点,都没有被执行到,那sl_Start(0, 0, 0)是怎么启动CC3100-NWP的?
user4699890:
回复 Terry Han:
[16:39:24] Begin Format operation.[16:39:25] INFO: > Executing Operation: Connect[16:39:27] INFO: setting break signal[16:39:28] INFO: detecting FTDI for device reset[16:39:28] ERROR: No device USB ports were found[16:39:28] INFO: — please restart the device —[16:39:28] INFO: connection succeeded[16:39:28] INFO: getting storage list[16:39:28] INFO: > Executing Operation: Init[16:39:28] INFO: reading version info[16:39:28] INFO: DEVICE CC3100 ES1.33[16:39:28] INFO: reading version info[16:39:30] INFO: > Executing Operation: Format[16:39:30] INFO: Erase storage SFLASH [16:39:31] INFO: erase storage succeeded[16:39:31] INFO: erase storage completed[16:39:31] INFO: > Executing Operation: Disconnect[16:39:31] Operation Format returned. [16:39:36] Begin ServicePackProgramming operation.[16:39:37] INFO: > Executing Operation: Connect[16:39:39] INFO: setting break signal[16:39:40] INFO: detecting FTDI for device reset[16:39:40] ERROR: No device USB ports were found[16:39:40] INFO: — please restart the device —[16:39:43] INFO: connection succeeded[16:39:43] INFO: getting storage list[16:39:43] INFO: > Executing Operation: ServicePackProgramming[16:39:43] INFO: Path to the service pack file: D:/ti/CC3100_CC3200_ServicePack_1.0.1.6-2.6.0.5/servicepack_1.0.1.6-2.6.0.5.bin[16:39:43] INFO: reading version info[16:39:43] INFO: CC3100R Device detected.[16:39:43] INFO: NWP/MAC/PHY Version from Service Pack: [16:39:43] INFO: NWP Patch version: 2.6.0.5[16:39:43] INFO: MAC Patch version: 1.4.0.1[16:39:43] INFO: PHY Patch version: 1.0.3.34[16:39:43] INFO: reading version info[16:39:43] INFO: DEVICE CC3100 ES1.33[16:39:43] INFO: reading version info[16:39:45] INFO: Downloading file "/sys/servicepack.ucf" with size 25820[16:39:47] INFO:
New Token is 0x24ABEEC1[16:39:47] INFO: Download complete[16:39:47] INFO: > Executing Operation: Disconnect[16:39:47] Operation ServicePackProgramming returned. [17:31:02] Begin Format operation.[17:31:02] INFO: > Executing Operation: Connect[17:31:04] INFO: setting break signal[17:31:05] INFO: connection succeeded[17:31:05] INFO: getting storage list[17:31:05] INFO: > Executing Operation: Init[17:31:05] INFO: reading version info[17:31:05] INFO: DEVICE CC3100 ES1.33[17:31:05] INFO: reading version info[17:31:07] INFO: > Executing Operation: Format[17:31:07] INFO: Erase storage SFLASH [17:31:08] INFO: erase storage succeeded[17:31:08] INFO: erase storage completed[17:31:08] INFO: > Executing Operation: Disconnect[17:31:08] Operation Format returned. [17:31:17] Begin ServicePackProgramming operation.[17:31:17] INFO: > Executing Operation: Connect[17:31:19] INFO: setting break signal[17:31:20] INFO: detecting FTDI for device reset[17:31:20] ERROR: No device USB ports were found[17:31:20] INFO: — please restart the device —[17:31:21] INFO: connection succeeded[17:31:21] INFO: getting storage list[17:31:21] INFO: > Executing Operation: ServicePackProgramming[17:31:21] INFO: Path to the service pack file: D:/ti/CC3100_CC3200_ServicePack_1.0.1.6-2.6.0.5/servicepack_1.0.1.6-2.6.0.5.bin[17:31:21] INFO: reading version info[17:31:21] INFO: CC3100R Device detected.[17:31:21] INFO: NWP/MAC/PHY Version from Service Pack: [17:31:21] INFO: NWP Patch version: 2.6.0.5[17:31:21] INFO: MAC Patch version: 1.4.0.1[17:31:21] INFO: PHY Patch version: 1.0.3.34[17:31:21] INFO: reading version info[17:31:21] INFO: DEVICE CC3100 ES1.33[17:31:21] INFO: reading version info[17:31:23] INFO: Downloading file "/sys/servicepack.ucf" with size 25820[17:31:26] INFO:
New Token is 0xE366105A[17:31:26] INFO: Download complete[17:31:26] INFO: > Executing Operation: Disconnect[17:31:26] Operation ServicePackProgramming returned.
使用了推荐的FLASH,service pack也烧进去了,怎么程序跑到
retVal = _SlDrvSyncObjWaitTimeout(&g_pCB->ObjPool[ObjIdx].SyncObj,INIT_COMPLETE_TIMEOUT,SL_DRIVER_API_DEVICE_SL_START);就出不来了?
HOST_INT一直有中断。
user4699890:
回复 Terry Han:
SP.bin文件有没有烧录到SPI Flash中后,还是会卡在sl_Start(0, 0, 0)。测了下MCU和CC3100的MISO是没有信号的,其它的都有信号。烧后还要配置什么吗
user3635857:
回复 user4699890:
你好你这个问题最后怎么解决的,可以分享一下吗?我和你一样的问题不知道什么原因。
user4699890:
回复 user3635857:
记不太清楚了,就是烧写对的cc3100的一个文件到FLASH就行了
andre feng:
回复 user3635857:
你好, 我也出现了类似的问题。可以分享一下 你是怎么解决的吗?