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/CC3220SF: cc3220sf

Part Number: CC3220SF

Tool/software: Code Composer Studio

Hi,

i configure my device to STA and request local time from google SNTP server.

i succeed with the process, to get the local time, but after hours i get  WDT beacuse the softwre stack on:

sl_NetAppDnsGetHostByName((signed char *) pcHostName, strlen(
pcHostName), pDestinationIP, SL_AF_INET);

advice

thanks

  • Hi,

    What it interval of you WDT? How do you have set timeouts for DNS ( sl_NetAppSet(SL_NETAPP_DNS_CLIENT_ID, SL_NETAPP_DNS_CLIENT_TIME,..)?

    Please make sure that this two configuration are not in conflict.

    Jan

  • Hi,

    WDT interval is 10sec.

    what is the parameter SL_NETAPP_DNS_CLIENT_TIME mean?

    what append if two task call the function sl_NetAppDnsGetHostByName in the same time?

  • Hi,

    what is the parameter SL_NETAPP_DNS_CLIENT_TIME mean?

    This is a way how to set timout for sl_NetAppDnsGetHostByName() function. In case you have set long timout, it can cause WDT reset because sl_NetAppDnsGetHostByName() is a blocking function. Additional information about this API you find at SWRU455 chapter 6.6.

    what append if two task call the function sl_NetAppDnsGetHostByName in the same time?

    I don't expect any issue.

    Jan