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.

MSP432E401Y: Adding external DNS does not work when using Static IP Address

Part Number: MSP432E401Y

Using SimpleLink version 3.20.

In the httpget_MSP_EXP432E401Y_tirtos_ccs_syscfg, I setup a static IP using syscfg. Then followed the steps in the original question, and even trying to set the breakpoint and to delay 2 seconds after SiNetIf_add call, I keep getting the following error code:

"Error! code = -2006, desc = httpTask: connect failed"

I know the static IP I programmed works because I can run the tcpecho example by programming the static IP the same way.

The function "CfgAddEntry(0, CFGTAG_SYSINFO, CFGITEM_DHCP_DOMAINNAMESERVER, 0, sizeof(uint32_t), (unsigned char *)&ip, 0);" always returns 0. Looking at config.c the documentation header states the following: 

"Returns 0 on successful add with no processing."
Does this mean that the call did nothing? How do I add a DNS when using static IP address?
  • Hello Angel,

    Angel Lopez said:
    "Error! code = -2006, desc = httpTask: connect failed"

    According to the README of the example, the application tries to connect to www.example.com. This error seems to be because the application is unable to connect to www.example.com.

    With you static IP connection does the MSP432E4 still have access to internet? If there is no internet connection then the error is expected. If you are directly connecting the MSP432E4 to you laptop/PC, generally there will not be any access to internet.

    Thanks,

    Sai

**Attention** This is a public forum