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/MSP-EXP432E401Y: HTTP Client Problem: Error! code = -2006

Part Number: MSP-EXP432E401Y

Tool/software: Code Composer Studio

Hello, 

I have my brand new MSP-EXP432E401Y board, and I want to implement an HTTP GET application.

I try to run the httpget_MSP_EXP432E401Y_tirtos_ccs example, as an out-of-the-box experience, but I get the following message from the UART interface:

Network Added:                                                                 
If-1:192.168.60.220                                                            
                                                                               
Sending a HTTP GET request to 'http://www.example.com'                         
                                                                               
Error! code = -2006, desc = httpTask: connect failed  

Doing some debug, I find that the function HTTPClient_create is returning some kind of error.

HTTPClient_Handle HTTPClient_create(int16_t *status, void *params)
{
    HTTPClient_CB *cli = NULL;
    int16_t ret = 0;
    cli = (HTTPClient_CB *)malloc(sizeof(HTTPClient_CB));
    if (cli != NULL)
    {
        initializeCB(cli);
        cli->responseHFieldValue = (char *)malloc(HTTPClient_RES_HFIELD_BUFFER_SIZE);
        if (cli->responseHFieldValue != NULL)
        {
            cli->responseHFieldIterator = cli->responseHFieldValue;
        }
        else
        {
            free(cli);
            *status = HTTPClient_ECBALLOCATIONFAILED;
            return(NULL);
        }
    }
    else
    {
        ret = HTTPClient_ECBALLOCATIONFAILED; //   <-- The Function is Returning Here!!!
    }
    *status = ret;
    return ((HTTPClient_Handle)cli);
}

This means that the cli is pointing to nowhere after the malloc. I tried to check the HTTPClient_CB type but find nothing...

If I do ping command to the Added IP (192.168.60.220), I get a ping response, which means that the device is connected and responding from the net.

Heap size and stack size are both 8192

the simplelink_msp432e4_sdk version is 4.10.00.13

and Code Composer Studio Version: 10.0.0.00010

I will appreciate any help, thank you very much

**Attention** This is a public forum