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.

CC3120: In STA mode driver enters in while loop and never come out

Part Number: CC3120

Hi Team,

We are using the CC3120 module in STA mode in our application.

Once CC3120 connects with the AP SSID in STA mode we frequently use "sl_DeviceGet" API with macro "SL_DEVICE_STATUS"  to get the device connection status.

Behavior wise after some time(in days) driver gets stuck in "_SlDrvRxHdrRead" API and never come back.

No idea why CC3120 behaves this way.

Do let us know how to resolve this issue.

Also, if any sample code for STA mode is available kindly share so we can check if any thing we can correct in the code.

With regards,

Anuj Shah

  • The SDK (you can also check cc3220) has few station mode examples (mqtt/ httpget/ oob/ provisioning/ power measurement).

    If you are calling the sl_DeviceGet from one of the simplelink;s event handlers, try to move the call to a separate thread context.

    Typically issues in _SlDrvRxHdrRead can suggest a loss of sync over the SPI, however if the issue is specific to this API - this seems unlikely.