Time from NTP server

Hi,

Im using nrf9160 based custom board, nrf sdk 1.5.1.

I want to get the time from NTP servers, for that i connected to CATM1 n/w, connected to NTP server using UDP Protocol, but im not understanding what is the request i should make for NTP server to get present EPOCH, 

Please share any example if available.

i have tried sntp_client example (zephyr/samples/net/sockets/sntp_client) but when i run my code its directly going into fault_s.S after spm_jump() function.

Best Regards

Rajender

Related