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.

CCS/CC3220MODA: SlNetIfWifi_getConnectionStatus() Indicates that NetIf is disconnected, despite having IP address

Part Number: CC3220MODA
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

I'm using the CC3220MODASF Chip on a custom carrier board, trying to get the first connection to internet working. I have successfully run the Network Terminal demo/example, and am able to get a ping between the board and my desktop- as well as the RSSI readings- so I know the radio is functional. I can connect to the AP and add the interface like so (Per the Httpget demo)

/* Initialize SlNetSock layer with CC3x20 interface                   */
        SlNetIf_init(0);
        SlNetIf_add(SLNETIF_ID_1, SLNET_IF_WIFI_NAME, 
                   (const SlNetIf_Config_t *)&SlNetIfConfigWifi,
                    SLNET_IF_WIFI_PRIO);

        SlNetSock_init(0);
        SlNetUtil_init(0);

However, in the call sequence of SlNetIf_getConnectionStatus() --> SlNetIfWifi_getConnectionStatus(), there are no apparent errors- but I have gotten rather deep into the driver code and am unable to figure out what's going on much further than the sl_WlanGet() call.

  • Hi Paul,

    What value are you getting back from the SlNetIfWifi layer vs. from the SlNetIf layer? Just wondering if there is potentially a conversion error.

    Also, did you see the SL_WLAN_CONNECTED event too prior to calling the getConnectionStatus() function?

    Best,
    Ben M
  • Hi Ben,

    The connection status at both NetIf and NetIfWifi are 0b0, indicating disconnected. The status bit in the struct returned by WlanGet is also 0, so I don't believe it to be a translation error.

    The code I quoted is called during the SL_NETAPP_EVENT_IPV[4/6]_ACQUIRED event from within SimpleLinkNetAppEventHandler(). How would I go about checking this SL_WLAN_CONNECTED? I cannot find any references to it anywhere.

    EDIT: I have found some of the information about the WLAN_CONNECT_EVENT in the user.h file. Will try to implement this callback into the process, but for the httpget example, the SimpleLinkWlanEventHandler() function is "unused in this application".

  • Hi Ben,

    I ended up resolving the issue. It seems to have been due to the flashing process in Uniflash not properly signing/configuring/something the MCU image that I originally used. I compiled my test project and reflashed with this (Signed by TI dummy certs), and am now able to properly connect.

    Perhaps for future readers, if you are aware of anything that may have caused a failure. I would assume the failure point was due to something in the low-level drivers not liking the signed image, or the certificate, and thus blocking NWP data/access.

    Thanks,
    Paul