Hello,
I am having an issue with the GPS on the nRF9160. I have been developing a custom program that will switch between NB-IoT and GPS when an interrupt pin is triggered. This code has all been tested in isolation and modulised into various source code files.
When the modules are brought together, the code works but only for a while. Eventually the code will hard fault when switching to GPS mode. To be clear, it is not the act of calling the GPS socket set-up but after the socket is initialised and the first 'scanning' line is printed. The hard fault can occur at the very first activation of the GPS, or the second, or the third, etc. it is not specific to any one call of the GPS module.
I have noticed that in the sample GPS program, there is a k_sleep() function placed in the main while loop that controls the scan frequency of the GPS. When this function is manipulated to increase the amount of milliseconds waited between cycles, the device will hardfault immediately after the GPS is initialised. This is leading me to believe my issue lies with this aspect of the GPS code.
From my own tests in my code, manipulating k_sleep(); has lead to more GPS cycles being completed before a hard fault occurs in the device.
For 3 tests across each k_sleep(), 1 full cycle is NB-IoT -> GPS -> NB-IoT without fault
At k_sleep() set to 50 milliseconds: cycles complete 4/6/6 before fault
At k_sleep() set to 100 milliseconds: cycles complete 6/1/6 before fault
At k_sleep() set to 250 milliseconds: cycles complete 3/6/2 before fault
At k_sleep() set to 500 milliseconds: cycles complete 2/3/1 before fault
At k_sleep() set to 750 milliseconds: cycles complete 1/2/2 before fault
At k_sleep() set to 900 milliseconds: cycles complete 3/1/1 before fault
At k_sleep() set to 1000 milliseconds: cycles complete 0/0/0 before fault
Note: Never could seem to get past 6 cycles before a fault (tried 50 milliseconds 10 times and 6 was the highest I could get to), may be a different issue or just bad luck but main issue here isn't related to the number of cycles the code does.
I am not able to show my current code publicly but the k_sleep(); I am referring to can be found on line 302 of the main gps sample code, manipulating that will cause my code to fault faster or slower. github.com/.../main.c
Terminal output for k_sleep() at 500millseconds:
***** Booting Zephyr OS v1.14.99-ncs1 ***** Flash region Domain Permissions 00 0x00000 0x08000 Secure rwxl 01 0x08000 0x10000 Non-Secure rwxl 02 0x10000 0x18000 Non-Secure rwxl 03 0x18000 0x20000 Non-Secure rwxl 04 0x20000 0x28000 Non-Secure rwxl 05 0x28000 0x30000 Non-Secure rwxl 06 0x30000 0x38000 Non-Secure rwxl 07 0x38000 0x40000 Non-Secure rwxl 08 0x40000 0x48000 Non-Secure rwxl 09 0x48000 0x50000 Non-Secure rwxl 10 0x50000 0x58000 Non-Secure rwxl 11 0x58000 0x60000 Non-Secure rwxl 12 0x60000 0x68000 Non-Secure rwxl 13 0x68000 0x70000 Non-Secure rwxl 14 0x70000 0x78000 Non-Secure rwxl 15 0x78000 0x80000 Non-Secure rwxl 16 0x80000 0x88000 Non-Secure rwxl 17 0x88000 0x90000 Non-Secure rwxl 18 0x90000 0x98000 Non-Secure rwxl 19 0x98000 0xa0000 Non-Secure rwxl 20 0xa0000 0xa8000 Non-Secure rwxl 21 0xa8000 0xb0000 Non-Secure rwxl 22 0xb0000 0xb8000 Non-Secure rwxl 23 0xb8000 0xc0000 Non-Secure rwxl 24 0xc0000 0xc8000 Non-Secure rwxl 25 0xc8000 0xd0000 Non-Secure rwxl 26 0xd0000 0xd8000 Non-Secure rwxl 27 0xd8000 0xe0000 Non-Secure rwxl 28 0xe0000 0xe8000 Non-Secure rwxl 29 0xe8000 0xf0000 Non-Secure rwxl 30 0xf0000 0xf8000 Non-Secure rwxl 31 0xf8000 0x100000 Non-Secure rwxl SRAM region Domain Permissions 00 0x00000 0x02000 Secure rwxl 01 0x02000 0x04000 Secure rwxl 02 0x04000 0x06000 Secure rwxl 03 0x06000 0x08000 Secure rwxl 04 0x08000 0x0a000 Secure rwxl 05 0x0a000 0x0c000 Secure rwxl 06 0x0c000 0x0e000 Secure rwxl 07 0x0e000 0x10000 Secure rwxl 08 0x10000 0x12000 Non-Secure rwxl 09 0x12000 0x14000 Non-Secure rwxl 10 0x14000 0x16000 Non-Secure rwxl 11 0x16000 0x18000 Non-Secure rwxl 12 0x18000 0x1a000 Non-Secure rwxl 13 0x1a000 0x1c000 Non-Secure rwxl 14 0x1c000 0x1e000 Non-Secure rwxl 15 0x1e000 0x20000 Non-Secure rwxl 16 0x20000 0x22000 Non-Secure rwxl 17 0x22000 0x24000 Non-Secure rwxl 18 0x24000 0x26000 Non-Secure rwxl 19 0x26000 0x28000 Non-Secure rwxl 20 0x28000 0x2a000 Non-Secure rwxl 21 0x2a000 0x2c000 Non-Secure rwxl 22 0x2c000 0x2e000 Non-Secure rwxl 23 0x2e000 0x30000 Non-Secure rwxl 24 0x30000 0x32000 Non-Secure rwxl 25 0x32000 0x34000 Non-Secure rwxl 26 0x34000 0x36000 Non-Secure rwxl 27 0x36000 0x38000 Non-Secure rwxl 28 0x38000 0x3a000 Non-Secure rwxl 29 0x3a000 0x3c000 Non-Secure rwxl 30 0x3c000 0x3e000 Non-Secure rwxl 31 0x3e000 0x40000 Non-Secure rwxl Peripheral Domain Status 00 NRF_P0 Non-Secure OK 01 NRF_CLOCK Non-Secure OK 02 NRF_RTC1 Non-Secure OK 03 NRF_NVMC Non-Secure OK 04 NRF_UARTE1 Non-Secure OK 05 NRF_UARTE2 Secure SKIP 06 NRF_IPC Non-Secure OK 07 NRF_VMC Non-Secure OK 08 NRF_FPU Non-Secure OK 09 NRF_EGU1 Non-Secure OK 10 NRF_EGU2 Non-Secure OK 11 NRF_TWIM2 Non-Secure OK 12 NRF_SPIM3 Non-Secure OK 13 NRF_TIMER0 Non-Secure OK 14 NRF_TIMER1 Non-Secure OK 15 NRF_TIMER2 Non-Secure OK 16 NRF_SAADC Non-Secure OK 17 NRF_GPIOTE1 Non-Secure OK SPM: NS image at 0x8000 SPM: NS MSP at 0x20023bd8 SPM: NS reset vector at 0xf3e1 SPM: prepare to jump to Non-Secure image. ***** Booting Zephyr OS v1.14.99-ncs1 ***** Application Started Setting up button interrupt Interrupt Setup Started Starting up into NB-IoT mode Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Waiting for interrupt State was: 0! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 0 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 2 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 2 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 3 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 3 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 4 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 4 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 5 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 5 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 6 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 6 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 7 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 7 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 8 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 8 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 9 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 9 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 10 Scanning [|] State was: 1! Interrupt tripped! State is now: 2! Shutting down GPS Enabling NB-IoT Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Entering idle mode State was: 0! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 1232491587 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 2 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 2 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 3 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 3 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 4 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 4 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 5 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 5 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 6 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 6 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 7 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 7 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 8 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 8 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 9 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 9 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 10 Scanning [/] State was: 1! Interrupt tripped! State is now: 1! State was: 1! Interrupt tripped! State is now: 2! Shutting down GPS Enabling NB-IoT Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Entering idle mode State was: 0! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 1232491587 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 2 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 2 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 3 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 3 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 4 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 4 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 5 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 5 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 6 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 6 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 7 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 7 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 8 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 8 Scanning [\] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 9 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 9 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 10 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 10 Scanning [\] State was: 1! Interrupt tripped! State is now: 2! Shutting down GPS Enabling NB-IoT Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Entering idle mode State was: 0! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 1232491587 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Tracking: 0 Using: 0 Unhealthy: 0 Seconds since lException occurred in Secure State ***** HARD FAULT ***** Fault escalation (see below) ***** BUS FAULT ***** Precise data bus error BFAR Address: 0x50008120 ***** Hardware exception ***** Current thread ID = 0x200207bc Faulting instruction address = 0x18860 Fatal fault in ISR! Spinning...
What is the purpose behind the k_sleep() function and is there a way to avoid this issue?
EDIT:
Just to demonstrate the GPS code is functioning as expected before the fault and is capable of acquiring locks (including faster locks after the first cycle) after each interrupt trigger.
4 cycles at 500milliseconds:
***** Booting Zephyr OS v1.14.99-ncs1 ***** Flash region Domain Permissions 00 0x00000 0x08000 Secure rwxl 01 0x08000 0x10000 Non-Secure rwxl 02 0x10000 0x18000 Non-Secure rwxl 03 0x18000 0x20000 Non-Secure rwxl 04 0x20000 0x28000 Non-Secure rwxl 05 0x28000 0x30000 Non-Secure rwxl 06 0x30000 0x38000 Non-Secure rwxl 07 0x38000 0x40000 Non-Secure rwxl 08 0x40000 0x48000 Non-Secure rwxl 09 0x48000 0x50000 Non-Secure rwxl 10 0x50000 0x58000 Non-Secure rwxl 11 0x58000 0x60000 Non-Secure rwxl 12 0x60000 0x68000 Non-Secure rwxl 13 0x68000 0x70000 Non-Secure rwxl 14 0x70000 0x78000 Non-Secure rwxl 15 0x78000 0x80000 Non-Secure rwxl 16 0x80000 0x88000 Non-Secure rwxl 17 0x88000 0x90000 Non-Secure rwxl 18 0x90000 0x98000 Non-Secure rwxl 19 0x98000 0xa0000 Non-Secure rwxl 20 0xa0000 0xa8000 Non-Secure rwxl 21 0xa8000 0xb0000 Non-Secure rwxl 22 0xb0000 0xb8000 Non-Secure rwxl 23 0xb8000 0xc0000 Non-Secure rwxl 24 0xc0000 0xc8000 Non-Secure rwxl 25 0xc8000 0xd0000 Non-Secure rwxl 26 0xd0000 0xd8000 Non-Secure rwxl 27 0xd8000 0xe0000 Non-Secure rwxl 28 0xe0000 0xe8000 Non-Secure rwxl 29 0xe8000 0xf0000 Non-Secure rwxl 30 0xf0000 0xf8000 Non-Secure rwxl 31 0xf8000 0x100000 Non-Secure rwxl SRAM region Domain Permissions 00 0x00000 0x02000 Secure rwxl 01 0x02000 0x04000 Secure rwxl 02 0x04000 0x06000 Secure rwxl 03 0x06000 0x08000 Secure rwxl 04 0x08000 0x0a000 Secure rwxl 05 0x0a000 0x0c000 Secure rwxl 06 0x0c000 0x0e000 Secure rwxl 07 0x0e000 0x10000 Secure rwxl 08 0x10000 0x12000 Non-Secure rwxl 09 0x12000 0x14000 Non-Secure rwxl 10 0x14000 0x16000 Non-Secure rwxl 11 0x16000 0x18000 Non-Secure rwxl 12 0x18000 0x1a000 Non-Secure rwxl 13 0x1a000 0x1c000 Non-Secure rwxl 14 0x1c000 0x1e000 Non-Secure rwxl 15 0x1e000 0x20000 Non-Secure rwxl 16 0x20000 0x22000 Non-Secure rwxl 17 0x22000 0x24000 Non-Secure rwxl 18 0x24000 0x26000 Non-Secure rwxl 19 0x26000 0x28000 Non-Secure rwxl 20 0x28000 0x2a000 Non-Secure rwxl 21 0x2a000 0x2c000 Non-Secure rwxl 22 0x2c000 0x2e000 Non-Secure rwxl 23 0x2e000 0x30000 Non-Secure rwxl 24 0x30000 0x32000 Non-Secure rwxl 25 0x32000 0x34000 Non-Secure rwxl 26 0x34000 0x36000 Non-Secure rwxl 27 0x36000 0x38000 Non-Secure rwxl 28 0x38000 0x3a000 Non-Secure rwxl 29 0x3a000 0x3c000 Non-Secure rwxl 30 0x3c000 0x3e000 Non-Secure rwxl 31 0x3e000 0x40000 Non-Secure rwxl Peripheral Domain Status 00 NRF_P0 Non-Secure OK 01 NRF_CLOCK Non-Secure OK 02 NRF_RTC1 Non-Secure OK 03 NRF_NVMC Non-Secure OK 04 NRF_UARTE1 Non-Secure OK 05 NRF_UARTE2 Secure SKIP 06 NRF_IPC Non-Secure OK 07 NRF_VMC Non-Secure OK 08 NRF_FPU Non-Secure OK 09 NRF_EGU1 Non-Secure OK 10 NRF_EGU2 Non-Secure OK 11 NRF_TWIM2 Non-Secure OK 12 NRF_SPIM3 Non-Secure OK 13 NRF_TIMER0 Non-Secure OK 14 NRF_TIMER1 Non-Secure OK 15 NRF_TIMER2 Non-Secure OK 16 NRF_SAADC Non-Secure OK 17 NRF_GPIOTE1 Non-Secure OK SPM: NS image at 0x8000 SPM: NS MSP at 0x20023bd8 SPM: NS reset vector at 0xf3e1 SPM: prepare to jump to Non-Secure image. ***** Booting Zephyr OS v1.14.99-ncs1 ***** Application Started Setting up button interrupt Interrupt Setup Started Starting up into NB-IoT mode Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Waiting for interrupt State was: 0! Interrupt tripped! State is now: 1! State was: 1! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 0 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 Scanning [|] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 Scanning [/] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 Scanning [-] Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 ............ Scanning [-] Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 70 Scanning [\] Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 71 Scanning [|] Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 71 Scanning [/] Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 242.866547 Speed: 0.684508 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:36:36 --------------------------------- Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 246.341095 Speed: 0.822424 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:36:37 --------------------------------- Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 247.054871 Speed: 0.377199 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:36:38 --------------------------------- Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 247.381271 Speed: 0.269779 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:36:39 --------------------------------- Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 240.506256 Speed: 1.033744 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:36:40 --------------------------------- Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 235.055313 Speed: 0.748148 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:36:41 --------------------------------- Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 227.877075 Speed: 0.343569 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:36:42 --------------------------------- Tracking: 2 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 221.145142 Speed: 4.401939 Heading: 350.317108 Date: 26-06-2019 Time (UTC): 08:36:44 ---------------------------------State was: 1! Interrupt tripped! State is now: 2! State was: 2! Interrupt tripped! State is now: 2! Shutting down GPS Enabling NB-IoT Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Entering idle mode State was: 0! Interrupt tripped! State is now: 1! State was: 1! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 1232491587 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 223.007477 Speed: 3.782128 Heading: 334.088593 Date: 26-06-2019 Time (UTC): 08:36:45 --------------------------------- Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 223.007477 Speed: 3.782128 Heading: 334.088593 Date: 26-06-2019 Time (UTC): 08:36:45 ........ --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 13 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 223.007477 Speed: 3.782128 Heading: 334.088593 Date: 26-06-2019 Time (UTC): 08:36:45 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 198.201843 Speed: 0.223694 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:08 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 198.263840 Speed: 0.748227 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:09 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 199.827469 Speed: 0.349585 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:10 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 202.830643 Speed: 0.650090 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:11 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 209.262085 Speed: 1.462613 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:12 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 208.257874 Speed: 0.538839 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:13 ---------------------------------State was: 1! Interrupt tripped! State is now: 2! State was: 2! Interrupt tripped! State is now: 2! Shutting down GPS Enabling NB-IoT Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Entering idle mode State was: 0! Interrupt tripped! State is now: 1! State was: 1! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 1232491587 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 203.780716 Speed: 1.157283 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:14 --------------------------------- Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 203.780716 Speed: 1.157283 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:14 ........ --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 11 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 203.780716 Speed: 1.157283 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:14 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 152.475311 Speed: 0.275427 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:38 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 159.553726 Speed: 0.693830 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:39 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 160.570663 Speed: 0.210465 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:40 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 171.190094 Speed: 0.432191 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:41 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 177.033356 Speed: 0.419606 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:42 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 177.022202 Speed: 0.802719 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:43 ---------------------------------State was: 1! Interrupt tripped! State is now: 1! State was: 1! Interrupt tripped! State is now: 2! Shutting down GPS Enabling NB-IoT Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Entering idle mode State was: 0! Interrupt tripped! State is now: 1! State was: 1! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 1232491587 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 181.266068 Speed: 0.912318 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:44 --------------------------------- Tracking: 0 Using: 0 Unhealthy: 0 Seconds since last fix 1 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 181.266068 Speed: 0.912318 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:44 ....... --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 15 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 181.266068 Speed: 0.912318 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:37:44 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 165.880707 Speed: 1.194079 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:38:12 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 162.105804 Speed: 1.189136 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:38:13 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 167.254166 Speed: 0.673746 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:38:14 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 165.867783 Speed: 0.253062 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:38:15 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 162.832489 Speed: 0.260593 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:38:16 --------------------------------- Tracking: 1 Using: 0 Unhealthy: 0 Seconds since last fix 0 --------------------------------- Longitude: xxxxxxxxx Latitude: xxxxxxxxx Altitude: 165.063126 Speed: 0.323328 Heading: 0.000000 Date: 26-06-2019 Time (UTC): 08:38:18 ---------------------------------State was: 1! Interrupt tripped! State is now: 2! State was: 2! Interrupt tripped! State is now: 2! Shutting down GPS Enabling NB-IoT Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,1,0,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Entering idle mode State was: 0! Interrupt tripped! State is now: 1! State was: 1! Interrupt tripped! State is now: 1! Opening AT Command Socket Socket ID: 2 Sending AT command: AT+CFUN=4 Modem response: OK Bytes received: 5 Sending AT command: AT%XSYSTEMMODE=0,0,1,0 Modem response: OK Bytes received: 5 Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577 Modem response: OK Bytes received: 5 Sending AT command: AT+CFUN=1 Modem response: OK Bytes received: 5 Socket ID 1232491587 NRF_AF_LOCAL 1 NRF_SOCK_DGRAM 2 NRF_PROTO_GNSS 516 Socket ID 1232491587 Socket created Socket ID 1232491587 Fix retry err: 0 Fix interval err: 0 nmea mask err: 0 GPS start err: 0 Exception occurred in Secure State ***** HARD FAULT ***** Fault escalation (see below) ***** BUS FAULT ***** Precise data bus error BFAR Address: 0x50008120 ***** Hardware exception ***** Current thread ID = 0x20020710 Faulting instruction address = 0x18860 Fatal fault in ISR! Spinning...
MJD093