GPS sample nRF9160 crash at nrf_modem_gnss_start()

Hello community...

I was able to compile the GPS sample and flash an actinius icarus (nRF9160) using the Actinius Programmer once and it said successful.


However, the app launches e.g. I can see any print statements from main.c via terminal/screen but then crashes at `nrf_modem_gnss_start()`

github.com/.../main.c


It doesn't even return -1 or anything, instead the app or OS crashes and goes into an infinite loop as follows:

SPM: NS image at 0x18200
SPM: NS MSP at 0x20018380
SPM: NS reset vector at 0x1c3ed
SPM: prepare to jump to Non-Secure image.
E: Could not get GPIO Device Binding
*** Booting Zephyr OS build v2.6.99-ncs1 ***
Flash regions Domain Permissions
00 02 0x00000 0x18000 Secure rwxl
03 31 0x18000 0x100000 Non-Secure rwxl

Non-secure callable region 0 placed in flash region 2 with size 32.

SRAM region Domain Permissions
00 07 0x00000 0x10000 Secure rwxl
08 31 0x10000 0x40000 Non-Secure rwxl

Peripheral Domain Status
00 NRF_P0 Non-Secure OK
01 NRF_CLOCK Non-Secure OK
02 NRF_RTC0 Non-Secure OK
03 NRF_RTC1 Non-Secure OK
04 NRF_NVMC Non-Secure OK
05 NRF_UARTE1 Non-Secure OK
06 NRF_UARTE2 Secure SKIP
07 NRF_TWIM2 Non-Secure OK
08 NRF_SPIM3 Non-Secure OK
09 NRF_TIMER0 Non-Secure OK
10 NRF_TIMER1 Non-Secure OK
11 NRF_TIMER2 Non-Secure OK
12 NRF_SAADC Non-Secure OK
13 NRF_PWM0 Non-Secure OK
14 NRF_PWM1 Non-Secure OK
15 NRF_PWM2 Non-Secure OK
16 NRF_PWM3 Non-Secure OK
17 NRF_WDT Non-Secure OK
18 NRF_IPC Non-Secure OK
19 NRF_VMC Non-Secure OK
20 NRF_FPU Non-Secure OK
21 NRF_EGU1 Non-Secure OK
22 NRF_EGU2 Non-Secure OK
23 NRF_DPPIC Non-Secure OK
24 NRF_REGULATORS Non-Secure OK
25 NRF_PDM Non-Secure OK
26 NRF_I2S Non-Secure OK
27 NRF_GPIOTE1 Non-Secure OK

SPM: NS image at 0x18200
SPM: NS MSP at 0x20018380
SPM: NS reset vector at 0x1c3ed
SPM: prepare to jump to Non-Secure image.

Parents
  • Hi LittleViking,

    Actinius Programmer is not our product, Did you nRF9160DK or something else?

    Best regards,

  • Yes, sorry for the confusion, the AGPS sample works but the GPS does not work for me. It runs and crashes per the above -- any ideas?

  • Hi LittleViking,

    I tested with nRF9160DK v.1.0.0 + NCS 1.7.0, everything is fine, here is my log. Can you share your hardware and SDK information?

    *** Booting Zephyr OS build v2.6.99-ncs1  ***
    
    Flash regions           Domain          Permissions
    
    00 01 0x00000 0x10000   Secure          rwxl
    
    02 31 0x10000 0x100000  Non-Secure      rwxl
    
    
    
    Non-secure callable region 0 placed in flash region 1 with size 32.
    
    
    
    SRAM region             Domain          Permissions
    
    00 07 0x00000 0x10000   Secure          rwxl
    
    08 31 0x10000 0x40000   Non-Secure      rwxl
    
    
    
    Peripheral              Domain          Status
    
    00 NRF_P0               Non-Secure      OK
    
    01 NRF_CLOCK            Non-Secure      OK
    
    02 NRF_RTC0             Non-Secure      OK
    
    03 NRF_RTC1             Non-Secure      OK
    
    04 NRF_NVMC             Non-Secure      OK
    
    05 NRF_UARTE1           Non-Secure      OK
    
    06 NRF_UARTE2           Secure          SKIP
    
    07 NRF_TWIM2            Non-Secure      OK
    
    08 NRF_SPIM3            Non-Secure      OK
    
    09 NRF_TIMER0           Non-Secure      OK
    
    10 NRF_TIMER1           Non-Secure      OK
    
    11 NRF_TIMER2           Non-Secure      OK
    
    12 NRF_SAADC            Non-Secure      OK
    
    13 NRF_PWM0             Non-Secure      OK
    
    14 NRF_PWM1             Non-Secure      OK
    
    15 NRF_PWM2             Non-Secure      OK
    
    16 NRF_PWM3             Non-Secure      OK
    
    17 NRF_WDT              Non-Secure      OK
    
    18 NRF_IPC              Non-Secure      OK
    
    19 NRF_VMC              Non-Secure      OK
    
    20 NRF_FPU              Non-Secure      OK
    
    21 NRF_EGU1             Non-Secure      OK
    
    22 NRF_EGU2             Non-Secure      OK
    
    23 NRF_DPPIC            Non-Secure      OK
    
    24 NRF_REGULATORS       Non-Secure      OK
    
    25 NRF_PDM              Non-Secure      OK
    
    26 NRF_I2S              Non-Secure      OK
    
    27 NRF_GPIOTE1          Non-Secure      OK
    
    
    
    SPM: NS image at 0x10000
    
    SPM: NS MSP at 0x200182f0
    
    SPM: NS reset vector at 0x13915
    
    SPM: prepare to jump to Non-Secure image.
    
    *** Booting Zephyr OS build v2.6.99-ncs1  ***
    
    Starting GPS sample
    
    Getting GNSS data...
    Tracking: 0 Using: 0 Unhealthy: 0
    
    ---------------------------------
    
    Seconds since last fix: 1
    
    Searching [|]
    
    
    
    NMEA strings:
    
    
    
    $GPGGA,000001.00,,,,,0,,99.99,,M,,M,,*67
    
    
    $GPGLL,,,,,000001.00,V,N*4B
    
    
    $GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*2D
    
    
    $GPGSV,1,1,0,,,,,,,,,,,,,,,,,1*54
    
    
    $GPRMC,000001.00,V,,,,,,,060180,,,N,V*09
    Tracking: 0 Using: 0 Unhealthy: 0
    
    

    I saw there are differences in the following part, did you do any configuration to SPM?

    SPM: NS image at 0x18200
    SPM: NS MSP at 0x20018380
    SPM: NS reset vector at 0x1c3ed

    Best regards,

    Charlie

Reply
  • Hi LittleViking,

    I tested with nRF9160DK v.1.0.0 + NCS 1.7.0, everything is fine, here is my log. Can you share your hardware and SDK information?

    *** Booting Zephyr OS build v2.6.99-ncs1  ***
    
    Flash regions           Domain          Permissions
    
    00 01 0x00000 0x10000   Secure          rwxl
    
    02 31 0x10000 0x100000  Non-Secure      rwxl
    
    
    
    Non-secure callable region 0 placed in flash region 1 with size 32.
    
    
    
    SRAM region             Domain          Permissions
    
    00 07 0x00000 0x10000   Secure          rwxl
    
    08 31 0x10000 0x40000   Non-Secure      rwxl
    
    
    
    Peripheral              Domain          Status
    
    00 NRF_P0               Non-Secure      OK
    
    01 NRF_CLOCK            Non-Secure      OK
    
    02 NRF_RTC0             Non-Secure      OK
    
    03 NRF_RTC1             Non-Secure      OK
    
    04 NRF_NVMC             Non-Secure      OK
    
    05 NRF_UARTE1           Non-Secure      OK
    
    06 NRF_UARTE2           Secure          SKIP
    
    07 NRF_TWIM2            Non-Secure      OK
    
    08 NRF_SPIM3            Non-Secure      OK
    
    09 NRF_TIMER0           Non-Secure      OK
    
    10 NRF_TIMER1           Non-Secure      OK
    
    11 NRF_TIMER2           Non-Secure      OK
    
    12 NRF_SAADC            Non-Secure      OK
    
    13 NRF_PWM0             Non-Secure      OK
    
    14 NRF_PWM1             Non-Secure      OK
    
    15 NRF_PWM2             Non-Secure      OK
    
    16 NRF_PWM3             Non-Secure      OK
    
    17 NRF_WDT              Non-Secure      OK
    
    18 NRF_IPC              Non-Secure      OK
    
    19 NRF_VMC              Non-Secure      OK
    
    20 NRF_FPU              Non-Secure      OK
    
    21 NRF_EGU1             Non-Secure      OK
    
    22 NRF_EGU2             Non-Secure      OK
    
    23 NRF_DPPIC            Non-Secure      OK
    
    24 NRF_REGULATORS       Non-Secure      OK
    
    25 NRF_PDM              Non-Secure      OK
    
    26 NRF_I2S              Non-Secure      OK
    
    27 NRF_GPIOTE1          Non-Secure      OK
    
    
    
    SPM: NS image at 0x10000
    
    SPM: NS MSP at 0x200182f0
    
    SPM: NS reset vector at 0x13915
    
    SPM: prepare to jump to Non-Secure image.
    
    *** Booting Zephyr OS build v2.6.99-ncs1  ***
    
    Starting GPS sample
    
    Getting GNSS data...
    Tracking: 0 Using: 0 Unhealthy: 0
    
    ---------------------------------
    
    Seconds since last fix: 1
    
    Searching [|]
    
    
    
    NMEA strings:
    
    
    
    $GPGGA,000001.00,,,,,0,,99.99,,M,,M,,*67
    
    
    $GPGLL,,,,,000001.00,V,N*4B
    
    
    $GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*2D
    
    
    $GPGSV,1,1,0,,,,,,,,,,,,,,,,,1*54
    
    
    $GPRMC,000001.00,V,,,,,,,060180,,,N,V*09
    Tracking: 0 Using: 0 Unhealthy: 0
    
    

    I saw there are differences in the following part, did you do any configuration to SPM?

    SPM: NS image at 0x18200
    SPM: NS MSP at 0x20018380
    SPM: NS reset vector at 0x1c3ed

    Best regards,

    Charlie

Children
No Data
Related