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 TCP发送数据的问题

Other Parts Discussed in Thread: MSP430G2553

Example App:basic_wifi_application

driver version 2.13.7.13

mcu:msp430g2553

CC3000建立tcp socket之后。

第一次发送数据能够成功,send(smtpSocket,"ST",2,0); 

但是在发送完成之后wlan_tx_buffer[CC3000_TX_BUFFER_SIZE - 1]   幻数位 就会被置为为0x01. 当下次发送之后就会进入幻数检测的那个while(1)死循环里面

        // The magic number that resides at the end of the TX/RX buffer (1 byte after the allocated size)
        // for the purpose of overrun detection. If the magic number is overwritten - buffer overrun 
        // occurred - and we will be stuck here forever!
	if (wlan_tx_buffer[CC3000_TX_BUFFER_SIZE - 1] != CC3000_BUFFER_MAGIC_NUMBER)
	{
		while (1)
			;
	}