Hi Everyone,
I'm doing a test on the CC3100 and it hangs when I stream data from host through CC3100 to a telnet client.
I set the CC3100 in AP mode, a telnet server with port #23, use Teraterm from 64-bit windows 7 to connect to the cc3100. After a connection establish between host tenet server and Teraterm telnet client, the host streams 16 bytes of data per packet in interval of 88 milliseconds. The test runs about 4 minutes then hangs.
My host MCU is PIC24EP512GU810. There is no OS. I use getting_started_with_wlan_ap example with some modification to stream data from a telnet connection, SPI interface.
I attached a sniffer from 1 run using WireShark. The test ran correctly up to packet #3291 which acknowledged packet #3190.
I stepped through the driver and discovered it stopped at driver.c line #1232: VERIFY_PROTOCOL(SyncCnt < SL_SYNC_SCAN_THRESHOLD);
The driver hung at: #define _SlDrvAssert(line ) { while(1); }
The functions and macro are defined as following:
#define SL_PROTOCOL_HANDLING SL_HANDLING_ASSERT
#define VERIFY_PROTOCOL(expr) _SL_ASSERT(expr)
#define _SlDrvAssert(line ) { while(1); }
#define _SL_ASSERT(expr) { if(!(expr)){_SlDrvAssert(__LINE__); } }
Does anyone know how to fix the issue with CC3100 driver?
Thanks in advance!