I am trying to implement GPS code in the nrf9160 but I cant find the function nrf_modem_gnss_init(); to initialize GNSS inside the modem in , is it being initialised within nrf_modem_gnss_start() function internally ? please help on this.


I am trying to implement GPS code in the nrf9160 but I cant find the function nrf_modem_gnss_init(); to initialize GNSS inside the modem in , is it being initialised within nrf_modem_gnss_start() function internally ? please help on this.



Hi,
If you see the above picture, we are configuring COEX0 pin before the RF is enabled. Please go through the code gps.c in the attachment.
You referred terminal_logsOpen1.log for modem logs ?
Regards,
Karthik.
Hi,
I'm referring to Modem_logsOpen1.bin. It was taken before COEX0 configuration was fixed. Please take a new modem log with the current implementation which configures COEX0 correctly.
BR,
Tommi
Hi Karthik,
For some reason, the modem log stops almost immediately (1 second) after GNSS start. Please try to capture a longer log. Let GNSS run at least for a couple of minutes.
BR,
Tommi
Hello Tommi Kangas
Could you please share the correct procedure for capturing enhanced GNSS modem traces over RTT on the nRF9160?
I have enabled the RTT modem trace backend and am monitoring RTT channel 1. After entering GNSS functional mode, I enable tracing using:
However, I only see AT command transaction logs and no GNSS‑specific modem traces.
Please let me know if there are any additional steps or ordering requirements to get the enhanced GNSS traces over RTT.
Regards,
Gunjan