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.

CC3100: CC3100 is in STA mode, communicating with the server, and becomes abnormal after a period of time.

Part Number: CC3100
Other Parts Discussed in Thread: CC3200, CC3120

Hi team,

I use cc3100 and stm32 to connect through SPI, configure it in STA mode, MCU is the client, MCU connects to the server through AP, TCP keeps sending data, and after a certain period of time, it enters the infinite loop in the _SlNonOsMainLoopTask() function, and TCP does not return send. Failed, how to troubleshoot the problem?

notes:I ran a KEIL built-in RTX real-time system on the MCU. Will there be any impact? For tcp communication, I use cc3100, which has no system routine modifications.

Thanks & Best regards,

Yolande

  • If you are using an RTOS why did you chose the non-os implementation?

    To debug an issue like this (which can definitely be related to the platform adaptation) you should check the exact point where the code is stuck (_SlNonOsMainLoopTask itself don't have infinite loops, so it must be in a callback that this function invokes) - so you get more info on the root cause.

    You can try to pause the debugger and debug the stack or to add debug prints in the simplelink driver.

    Make sure you are using the latest SDK and service pack to avoid already fixed issues. You can consider using the host driver from CC3200 SDK 1.5 (which is the latest of the CC3x00 family).

     Finally, if this is a new project - please consider moving to a newer wi-fi device (such as CC3120/35 or CC33xx). CC3100 is very old device with many limitations.