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.

SIMPLELINK-MSP432-SDK: HTTPSGET EXAMPLE: SNTP_getTime() in startsntp.c throws faultISR()

Part Number: SIMPLELINK-MSP432-SDK
Other Parts Discussed in Thread: MSP-EXP432E401Y

Using simplelink_msp432e4_sdk_2_40_00_11 and FreeRTOSv10.1.1 on MSP-EXP432E401Y:

Problem:

SNTP_getTime() call within startsntp.c jumps to faultISR() function.

Exact line:

The call to SlNetSock_create() in getTime() in sntp.c when connecting to time.google.com

Workaround:

Changed the first NTP server in the SNTP_internalServersList[] from time.google.com to time.nist.gov

Debugging done:

Was able to get time from time.google.com using Apache Commons Net. So server is up and I can reach it from my network using another NTP client.

  • Mike,

    Thanks for the detailed information on this topic and the time spent to identify a workaround!

    time.google.com is a valid public NTP server so we should be able to connect to it. I will look into it and try to identify the root cause.

    Regards,
    Sai
  • Hello Mike,

    I tired the "httpsget" example (./examples/rtos/MSP_EXP432E401Y/ns/httpsget/) using the following combinations and the example runs successfully. I am using SimpleLink MSP432E4 SDK v2.40.00.11 and FreeRTOS v10.0.1.
    * TI-RTOS + CCS
    * FreeRTOS + CCS
    * FreeRTOS + GCC

    Based on your post, the application should have entered Fault ISR before returning from SNTP_getTime API in startsntp.c file. In my testing the example ran successfully getting the time and displaying it.

    As a background, the sntp module (./source/ti/net/sntp/) maintains a list of NTP servers, the first of which is "time.google.com". The sntp module runs through this list for servers, in case one of them is not accessible, till it gets to one that is accessible. In my testing from USA, this works as expected.

    Thanks,
    Sai

**Attention** This is a public forum