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.

A bug in wlan_station example when using GCC optimization



The example defined a global variable "g_ulStatus" to set network event flags in simplelink task and the user task will check this flag to know if events happened. while a volatile keyword is missing which will cause the flag set/check failed, and the example cannot run with expected result. Please fix this issue, thanks!

volatile unsigned long  g_ulStatus = 0;//SimpleLink Status