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.

cc3200 configuresimplelinktodefault hangs issue

Hi

I see that my code hangs in configuresimplelinktodefault method call. I read it on some thread that it might be because of wlanevent. I checked and yes that is the cause. But I'm not able to find a solution how to get over with this. 

after sl_start(), after some random time code goes into wlanevant handler and says WLAN is connected. and the normal execution of configuresimplelinktodefault() halts there. 

I've put a watchdog to take care of this, so it takes multiple iterations of reboots before my device actually comes out clean from configuresimplelinktodefault(). 

Only change that I've made is I commented wlanprofiledel(), since I want to retain wifi credentials stored in NVMEM. 

In a normal execution, Its not a major issue as of now,since eventually it connects to my access point after 4-5 reboots. But when I'm using OTA update and committing new image, it gets critical since new image has to connect in the first go, otherwise on reboot system reboots with older image.