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.

Create tcp socket connection inside ISR

Other Parts Discussed in Thread: CC3200, SYSBIOS

Hi,

I want to create socket connection and send request to server when i press the GPIO pin. I am using cc3200 Launch pad for development.

Here is the code i implemented

#define SERVER_NAME                "www.google.com"

signed char    *g_Host = SERVER_NAME;

void GetWeather()
{

long IRetVal = -1;

unsigned int uiIP;

lRetVal = sl_NetAppDnsGetHostByName(g_Host, strlen((const char *)g_Host),

(unsigned long*)&uiIP, SL_AF_INET);

}

main()

{

//enable sw3 switch

Button_IF_Init(null,GetWeather);

//Some other task

// Connect to the internet using station mode

.......

.......

}

I am getting the below error while getting the getting the Ip ffrom host name

ti.sysbios.gates.GateMutex: line 99: assertion failure: A_badContext: bad calling context. See GateMutex API doc for details.
xdc.runtime.Error.raise: terminating execution

Please help me to resolve this issue.

Regards,

Sundar