This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Asset_tracker with simulated GPS

Hello, 

I have a problem building Asset tracker from SDK application example with simulated GPS data. After building an error message shows. 


B 48 KB 132.29%
B 64 KB 13.10%
B 2 KB 1.95c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: zephyr\zephyr_prebuilt.elf section `.gnu.sgstubs' will not fit in region `FLASH'
SPM and app are sharing an SPU region. Cannot partition flash correctly into secure and non-secure. Adjust partitions sizes so they are placed in separate regions.
region `FLASH' overflowed by 15872 bytes
ld returned 1 exit status
build stopped: subcommand failed.
Build failed

I have selected simulated GPS on both spm_menucofing and in menuconfig. 

Parents
  • Hi!

    Do not disable simulated GPS in SPM, just in your non-secure application. Let me know if that solves this issue for you!

    Best regards,

    Heidi

  • The flash is overflowed again, I have tried the simulated GPS from .../nrf/samples/nrf9160/gps example where the flash is also overflowing when I use simulated GPS in just SPM. 

  • Heidi said:
    Do not disable simulated GPS in SPM, just in your non-secure application.

     Do not go into spm_menuconfig and enable GPS simulator. You only enable this in the menuconfig for your application.

  • I was only going there in the hope it will work since when I enable simulated GPS trough menuconfig and look at what am I getting on the serial communication nothing happens. It is always searching a fix and that is it... What should I do to make the simulated GPS work? 

  • Okay, so when you do it correctly you are able to build and flash the program to the device and then you get a new error, which is that you don't see any serial information from the device, correct? 

    Then I will need to see the log file from the application? Are you using LTE Link Monitor? Are you using nRF9160 DK or Thingy:91?

  • It isn't an error it just doesn't produce simulated GPS data it behaves the same when I use real GPS data. 

    Yes, I am using the LTE link Monitor.

    And I am using nrf9160 DK.

    2020-09-11T08:10:10.838Z INFO Application data folder: C:\Users\LokiWay\AppData\Roaming\nrfconnect\pc-nrfconnect-linkmonitor
    2020-09-11T08:10:11.378Z DEBUG App pc-nrfconnect-linkmonitor v1.1.6 official
    2020-09-11T08:10:11.379Z DEBUG App path: C:\Users\LokiWay\.nrfconnect-apps\node_modules\pc-nrfconnect-linkmonitor
    2020-09-11T08:10:11.379Z DEBUG nRFConnect 3.5.0 is supported by the app (^3.2.0)
    2020-09-11T08:10:11.379Z DEBUG nRFConnect path: C:\Users\LokiWay\AppData\Local\Programs\nrfconnect\resources\app.asar
    2020-09-11T08:10:11.379Z DEBUG HomeDir: C:\Users\LokiWay
    2020-09-11T08:10:11.379Z DEBUG TmpDir: C:\Users\LokiWay\AppData\Local\Temp
    2020-09-11T08:10:16.783Z INFO Modem port is opened
    2020-09-11T08:10:16.793Z DEBUG modem >> AT+CFUN?
    2020-09-11T08:10:16.977Z DEBUG modem << [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:16.979Z DEBUG modem << Seconds since last fix 3
    2020-09-11T08:10:16.980Z DEBUG modem << 
    2020-09-11T08:10:17.485Z DEBUG modem << Scanning [-] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:17.499Z DEBUG modem << Seconds since last fix 3
    2020-09-11T08:10:17.992Z DEBUG modem << Scanning [\] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:17.994Z DEBUG modem << Seconds since last fix 4
    2020-09-11T08:10:17.995Z DEBUG modem << 
    2020-09-11T08:10:18.066Z DEBUG modem << Scanning [|] *** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
    2020-09-11T08:10:18.074Z DEBUG modem << Flash regionsDomainPermissions
    2020-09-11T08:10:18.079Z DEBUG modem << 00 00 0x00000 0x08000 Securerwxl
    2020-09-11T08:10:18.097Z DEBUG modem << 01 31 0x08000 0x100000 Non-Securerwxl
    2020-09-11T08:10:18.102Z DEBUG modem << Non-secure callable region 0 placed in flash region 0 with size 32.
    2020-09-11T08:10:18.351Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
    2020-09-11T08:10:18.363Z DEBUG modem << Flash regionsDomainPermissions
    2020-09-11T08:10:18.367Z DEBUG modem << 00 00 0x00000 0x08000 Securerwxl
    2020-09-11T08:10:18.372Z DEBUG modem << 01 31 0x08000 0x100000 Non-Securerwxl
    2020-09-11T08:10:18.374Z DEBUG modem << Non-secure callable region 0 placed in flash region 0 with size 32.
    2020-09-11T08:10:18.536Z DEBUG modem << SRAM regionDomainPermissions
    2020-09-11T08:10:18.543Z DEBUG modem << 00 07 0x00000 0x10000 Securerwxl
    2020-09-11T08:10:18.546Z DEBUG modem << 08 31 0x10000 0x40000 Non-Securerwxl
    2020-09-11T08:10:18.549Z DEBUG modem << PeripheralDomainStatus
    2020-09-11T08:10:18.552Z DEBUG modem << 00 NRF_P0               Non-SecureOK
    2020-09-11T08:10:18.555Z DEBUG modem << 01 NRF_CLOCK            Non-SecureOK
    2020-09-11T08:10:18.561Z DEBUG modem << 02 NRF_RTC0             Non-SecureOK
    2020-09-11T08:10:18.563Z DEBUG modem << 03 NRF_RTC1             Non-SecureOK
    2020-09-11T08:10:18.565Z DEBUG modem << 04 NRF_NVMC             Non-SecureOK
    2020-09-11T08:10:18.568Z DEBUG modem << 
    2020-09-11T08:10:18.569Z DEBUG modem << 05 NRF_UARTE1           Non-SecureOK
    2020-09-11T08:10:18.571Z DEBUG modem << 06 NRF_UARTE2           SecureSKIP
    2020-09-11T08:10:18.573Z DEBUG modem << 07 NRF_TWIM2            Non-SecureOK
    2020-09-11T08:10:18.581Z DEBUG modem << 08 NRF_SPIM3            Non-SecureOK
    2020-09-11T08:10:18.583Z DEBUG modem << 09 NRF_TIMER0           Non-SecureOK
    2020-09-11T08:10:18.586Z DEBUG modem << 10 NRF_TIMER1           Non-SecureOK
    2020-09-11T08:10:18.588Z DEBUG modem << 11 NRF_TIMER2           Non-SecureOK
    2020-09-11T08:10:18.596Z DEBUG modem << 12 NRF_SAADC            Non-SecureOK
    2020-09-11T08:10:18.598Z DEBUG modem << 13 NRF_PWM0             Non-SecureOK
    2020-09-11T08:10:18.599Z DEBUG modem << 14 NRF_PWM1             Non-SecureOK
    2020-09-11T08:10:18.601Z DEBUG modem << 15 NRF_PWM2             Non-SecureOK
    2020-09-11T08:10:18.604Z DEBUG modem << 16 NRF_PWM3             Non-SecureOK
    2020-09-11T08:10:18.612Z DEBUG modem << 17 NRF_WDT              Non-SecureOK
    2020-09-11T08:10:18.615Z DEBUG modem << 18 NRF_IPC              Non-SecureOK
    2020-09-11T08:10:18.620Z DEBUG modem << 19 NRF_VMC              Non-SecureOK
    2020-09-11T08:10:18.621Z DEBUG modem << 20 NRF_FPU              Non-SecureOK
    2020-09-11T08:10:18.623Z DEBUG modem << 21 NRF_EGU1             Non-SecureOK
    2020-09-11T08:10:18.629Z DEBUG modem << 22 NRF_EGU2             Non-SecureOK
    2020-09-11T08:10:18.631Z DEBUG modem << 23 NRF_DPPIC            Non-SecureOK
    2020-09-11T08:10:18.632Z DEBUG modem << 24 NRF_GPIOTE1          Non-SecureOK
    2020-09-11T08:10:18.635Z DEBUG modem << 25 NRF_REGULATORS       Non-SecureOK
    2020-09-11T08:10:18.636Z DEBUG modem << SPM: NS image at 0xc000
    2020-09-11T08:10:18.640Z DEBUG modem << SPM: NS MSP at 0x20023c00
    2020-09-11T08:10:18.644Z DEBUG modem << SPM: NS reset vector at 0xfd45
    2020-09-11T08:10:18.646Z DEBUG modem << SPM: prepare to jump to Non-Secure image.
    2020-09-11T08:10:20.332Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
    2020-09-11T08:10:20.334Z DEBUG modem << Staring GPS application
    2020-09-11T08:10:20.341Z DEBUG modem << GPS Socket created
    2020-09-11T08:10:20.353Z DEBUG modem << Getting GPS data...
    2020-09-11T08:10:20.357Z DEBUG modem << [1;1H[2JTracking: 1 Using: 1 Unhealthy: 0
    2020-09-11T08:10:20.363Z DEBUG modem << Seconds since last fix 1
    2020-09-11T08:10:20.865Z DEBUG modem << Scanning [|] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:20.866Z DEBUG modem << Seconds since last fix 2
    2020-09-11T08:10:20.867Z DEBUG modem << 
    2020-09-11T08:10:21.372Z DEBUG modem << Scanning [/] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:21.376Z DEBUG modem << 
    2020-09-11T08:10:21.377Z DEBUG modem << Seconds since last fix 2
    2020-09-11T08:10:21.882Z DEBUG modem << Scanning [-] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:21.895Z DEBUG modem << Seconds since last fix 3
    2020-09-11T08:10:22.388Z DEBUG modem << Scanning [\] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:22.393Z DEBUG modem << Seconds since last fix 3
    2020-09-11T08:10:22.897Z DEBUG modem << Scanning [|] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:22.915Z DEBUG modem << Seconds since last fix 4
    2020-09-11T08:10:23.403Z DEBUG modem << Scanning [/] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:23.405Z DEBUG modem << Seconds since last fix 4
    2020-09-11T08:10:23.410Z DEBUG modem << 
    2020-09-11T08:10:23.912Z DEBUG modem << Scanning [-] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:23.917Z DEBUG modem << Seconds since last fix 5
    2020-09-11T08:10:24.419Z DEBUG modem << Scanning [\] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:24.421Z DEBUG modem << Seconds since last fix 5
    2020-09-11T08:10:24.422Z DEBUG modem << 
    2020-09-11T08:10:24.926Z DEBUG modem << Scanning [|] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:24.931Z DEBUG modem << Seconds since last fix 6
    2020-09-11T08:10:25.436Z DEBUG modem << Scanning [/] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:25.450Z DEBUG modem << Seconds since last fix 6
    2020-09-11T08:10:25.942Z DEBUG modem << Scanning [-] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:25.947Z DEBUG modem << Seconds since last fix 7
    2020-09-11T08:10:26.452Z DEBUG modem << Scanning [\] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:26.468Z DEBUG modem << Seconds since last fix 7
    2020-09-11T08:10:26.958Z DEBUG modem << Scanning [|] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:26.976Z DEBUG modem << Seconds since last fix 8
    2020-09-11T08:10:27.465Z DEBUG modem << Scanning [/] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:27.470Z DEBUG modem << Seconds since last fix 8
    2020-09-11T08:10:27.973Z DEBUG modem << Scanning [-] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:27.977Z DEBUG modem << Seconds since last fix 9
    2020-09-11T08:10:28.482Z DEBUG modem << Scanning [\] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:28.500Z DEBUG modem << Seconds since last fix 9
    2020-09-11T08:10:28.988Z DEBUG modem << Scanning [|] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    2020-09-11T08:10:28.990Z DEBUG modem << Seconds since last fix 10
    2020-09-11T08:10:29.238Z INFO Modem port is closed
    2020-09-11T08:10:45.513Z INFO Restoring from C:\Users\LokiWay\AppData\Roaming\nrfconnect\pc-nrfconnect-linkmonitor\logs\2020-09-11T08_10_10.247Z-log.txt
    

  • So I took a further look at the GPS simple and it doesn't look like this sample has support for using simulated GPS data, just by enabling this configuration. You will have to re-write the sample to use simulated GPS data. 

    However, the asset tracker should have support for enabling simulated GPS. Just enable this config here.

    Best regards,

    Heidi 

Reply Children
No Data
Related