MPC5748G request current time from SNTP server

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5748G request current time from SNTP server

Jump to solution
1,076 Views
MattJCole
Contributor V

 

I am currently porting existing K65 code to the MPC5748G. In the K65 SDK you are able to call the SNTP_oneshot function to request the time from the SNTP server. Is there a way to do this in the SDK for the MPC5748G?

0 Kudos
Reply
1 Solution
1,044 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

there's LWIP stack included in the SDK and there's minimal SNTP implemention:

https://www.nongnu.org/lwip/2_0_x/group__sntp.html

The source file can be found here:

c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32PA_RTM_3.0.3\middleware\tcpip\lwip\src\apps\sntp\sntp.c

Regards,

Lukas

View solution in original post

0 Kudos
Reply
2 Replies
1,020 Views
MattJCole
Contributor V

I went though the list of functions in the link provided and it does not seem like they provide a way to send a single request to get the current time like KSDK does.

0 Kudos
Reply
1,045 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

there's LWIP stack included in the SDK and there's minimal SNTP implemention:

https://www.nongnu.org/lwip/2_0_x/group__sntp.html

The source file can be found here:

c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32PA_RTM_3.0.3\middleware\tcpip\lwip\src\apps\sntp\sntp.c

Regards,

Lukas

0 Kudos
Reply