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

gps sample fails at AT+CFUN+31

I'm was testing the gsp sample in samples/nrf9160/gps. It runs fine on my nRF9160DK and reports NMEA messages. However, when i ran it on my custom board, it failed in setup_modem(). This is where it starts transmitting AT commands. The function runs through a set of commands (i copied the #ifdef CONFIG_BOARD_NRF9160DK_NRF9160NS to have AT_MAGPIO and AT_COEX0 settings empty since these pins are unused on my board).

These three commands are sent with no errors:
AT%XSYSTEMMODE=1,0,1,0
AT%XMAGPIO
AT%XCOEX0
But:
AT+CFUN+31. Error -8 (ENOEXEC) is reported back from at_cmd_write().

If I ignore the -8 error and force it further it enters gnss_ctrl(), reports back "GPS Socket created", but hangs forever on nrf_setsockopt(). Of course forcing it further is futile, as the modem is not powered at this stage. 

AT+CGMR reports mfw-pti_nrf9160_1.1.1 so the modem firmware is uploaded. I can't updated the firmware, as I struggle with nRF Connect no seeing my J-Link, but it should still work for this basic example. I use J-Link EDU Mini and the latest J-Flash Lite to program the chip.

Any ideas?

Parents
  • Hi,

     

    mfw-pti_nrf9160_1.1.1

     This is a production test image, and not the full modem firmware.

    It is a cut-down version of the full modem firmware, which can be used during production testing, but it does not have any signalling capability.

    It does however have some extra features which are usefull for production testing.

    But, when you are done testing, and before the product can be used, you must program a full modem firmware to the device.

    There is some information on the production test image in the AT command reference guide.

    Best regards,

    Didrik

Reply
  • Hi,

     

    mfw-pti_nrf9160_1.1.1

     This is a production test image, and not the full modem firmware.

    It is a cut-down version of the full modem firmware, which can be used during production testing, but it does not have any signalling capability.

    It does however have some extra features which are usefull for production testing.

    But, when you are done testing, and before the product can be used, you must program a full modem firmware to the device.

    There is some information on the production test image in the AT command reference guide.

    Best regards,

    Didrik

Children
Related