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.

CC3000 send()引起MCU重启

Other Parts Discussed in Thread: MSP430G2553

我使用的是CC3000 booster pack+ MSP430G2553,都是官方的开发板,其中CC3000作为Server,电脑作为Client,建立TCP/IP连接。

现在是从电脑发送到CC3000可以成功,而且很稳定。

但是从CC3000调用send()发送到电脑上时,就会出现板子重新启动的现象。

在我调试的过程中

	// In case we are using SendTo, copy the to parameters
	if (opcode == HCI_CMND_SENDTO)
	{	
		ARRAY_TO_STREAM(pDataPtr, ((UINT8 *)to), tolen);
	}

	// Initiate a HCI command
	hci_data_send(opcode, ptr, uArgSize, len,(UINT8*)to, tolen);

	if (opcode == HCI_CMND_SENDTO)
		SimpleLinkWaitEvent(HCI_EVNT_SENDTO, &tSocketSendEvent);
	else
		SimpleLinkWaitEvent(HCI_EVNT_SEND, &tSocketSendEvent);

	return	(len);

我在SimpleLinkWaitEvent前加中断,系统可以正向运行。但是如果把中断放

return	(len);

前,系统就会重启,但是数据已经发送成功,Client端可以收到这个发送的数据。

后来我尝试在

hci_data_send(opcode, ptr, uArgSize, len,(UINT8*)to, tolen);
后面加了delay_cycle(3276),系统可以正常发送数据了。但是如果delay_cycle()的参数小于2000时,系统仍然会自动重启
我想问一下,这个是由什么引起的?