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

The modem restarts after sending the command AT+CFUN=1

Hi, 

When running the at_client example, I send the AT+CFUN=1 command via the LTE link monitor. After a few seconds, the nrf9160 reboots.

I want to say that before my program worked and connected to the server. However, now I cannot even work through at_client. Commands like AT+CGMR work

If I pull out the sim card, the nrf9160 will not restart. What could be the problem?

P.S. I tried to get modem trace but tace collecor is not accepting anything. Are there any other ways to debug this problem?

Modem firmware version - mfw_nrf9160_1.1.0
I use nRF Connect SDK v1.3.0

Parents
  • Hi Yury,
    Please update the mfw to a newer one: https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs

    Then just run the regular unmodified AT Client (also attached: at_client_nrf91dk.hex)

    Then turn ON "Automatic Requests" when you test:

  • Unfortunately, it didn't help. The device keeps restarting after sending command AT+CFUN=1.

    2020-08-12T05:39:42.767Z INFO Application data folder: C:\Users\y.morgunov\AppData\Roaming\nrfconnect\pc-nrfconnect-linkmonitor
    2020-08-12T05:39:42.833Z DEBUG App pc-nrfconnect-linkmonitor v1.1.4 official
    2020-08-12T05:39:42.834Z DEBUG App path: C:\Users\y.morgunov\.nrfconnect-apps\node_modules\pc-nrfconnect-linkmonitor
    2020-08-12T05:39:42.834Z DEBUG nRFConnect 3.4.2 is supported by the app (^3.2.0)
    2020-08-12T05:39:42.834Z DEBUG nRFConnect path: C:\Users\y.morgunov\AppData\Local\Programs\nrfconnect\resources\app.asar
    2020-08-12T05:39:42.834Z DEBUG HomeDir: C:\Users\y.morgunov
    2020-08-12T05:39:42.834Z DEBUG TmpDir: C:\Users\YDBE4~1.MOR\AppData\Local\Temp
    2020-08-12T05:39:42.840Z VERBOSE Could not fetch serial number for serial port at COM1
    2020-08-12T05:39:42.841Z VERBOSE Could not fetch serial number for serial port at COM20
    2020-08-12T05:39:47.994Z INFO Modem port is opened
    2020-08-12T05:39:48.002Z DEBUG modem >> AT+CFUN?
    2020-08-12T05:39:48.019Z DEBUG modem << +CFUN: 0
    2020-08-12T05:39:48.022Z DEBUG modem << OK
    2020-08-12T05:40:16.275Z DEBUG modem >> AT+CFUN=1
    2020-08-12T05:40:16.318Z DEBUG modem << OK
    2020-08-12T05:40:20.868Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
    2020-08-12T05:40:20.883Z DEBUG modem << Flash regionsDomainPermissions
    2020-08-12T05:40:20.888Z DEBUG modem << 00 00 0x00000 0x08000 Securerwxl
    2020-08-12T05:40:20.891Z DEBUG modem << 01 31 0x08000 0x100000 Non-Securerwxl
    2020-08-12T05:40:20.894Z DEBUG modem << Non-secure callable region 0 placed in flash region 0 with size 32.
    2020-08-12T05:40:21.056Z DEBUG modem << SRAM regionDomainPermissions
    2020-08-12T05:40:21.061Z DEBUG modem << 00 07 0x00000 0x10000 Securerwxl
    2020-08-12T05:40:21.063Z DEBUG modem << 08 31 0x10000 0x40000 Non-Securerwxl
    2020-08-12T05:40:21.066Z DEBUG modem << PeripheralDomainStatus
    2020-08-12T05:40:21.069Z DEBUG modem << 00 NRF_P0               Non-SecureOK
    2020-08-12T05:40:21.073Z DEBUG modem << 01 NRF_CLOCK            Non-SecureOK
    2020-08-12T05:40:21.076Z DEBUG modem << 02 NRF_RTC0             Non-SecureOK
    2020-08-12T05:40:21.084Z DEBUG modem << 03 NRF_RTC1             Non-SecureOK
    2020-08-12T05:40:21.085Z DEBUG modem << 04 NRF_NVMC             Non-SecureOK
    2020-08-12T05:40:21.088Z DEBUG modem << 05 NRF_UARTE1           Non-SecureOK
    2020-08-12T05:40:21.090Z DEBUG modem << 06 NRF_UARTE2           SecureSKIP
    2020-08-12T05:40:21.100Z DEBUG modem << 07 NRF_TWIM2            Non-SecureOK
    2020-08-12T05:40:21.103Z DEBUG modem << 08 NRF_SPIM3            Non-SecureOK
    2020-08-12T05:40:21.105Z DEBUG modem << 09 NRF_TIMER0           Non-SecureOK
    2020-08-12T05:40:21.107Z DEBUG modem << 10 NRF_TIMER1           Non-SecureOK
    2020-08-12T05:40:21.109Z DEBUG modem << 11 NRF_TIMER2           Non-SecureOK
    2020-08-12T05:40:21.115Z DEBUG modem << 12 NRF_SAADC            Non-SecureOK
    2020-08-12T05:40:21.118Z DEBUG modem << 13 NRF_PWM0             Non-SecureOK
    2020-08-12T05:40:21.120Z DEBUG modem << 14 NRF_PWM1             Non-SecureOK
    2020-08-12T05:40:21.121Z DEBUG modem << 15 NRF_PWM2             Non-SecureOK
    2020-08-12T05:40:21.125Z DEBUG modem << 16 NRF_PWM3             Non-SecureOK
    2020-08-12T05:40:21.132Z DEBUG modem << 17 NRF_WDT              Non-SecureOK
    2020-08-12T05:40:21.134Z DEBUG modem << 18 NRF_IPC              Non-SecureOK
    2020-08-12T05:40:21.136Z DEBUG modem << 19 NRF_VMC              Non-SecureOK
    2020-08-12T05:40:21.138Z DEBUG modem << 20 NRF_FPU              Non-SecureOK
    2020-08-12T05:40:21.143Z DEBUG modem << 21 NRF_EGU1             Non-SecureOK
    2020-08-12T05:40:21.150Z DEBUG modem << 22 NRF_EGU2             Non-SecureOK
    2020-08-12T05:40:21.152Z DEBUG modem << 23 NRF_DPPIC            Non-SecureOK
    2020-08-12T05:40:21.154Z DEBUG modem << 24 NRF_GPIOTE1          Non-SecureOK
    2020-08-12T05:40:21.156Z DEBUG modem << 25 NRF_REGULATORS       Non-SecureOK
    2020-08-12T05:40:21.158Z DEBUG modem << SPM: NS image at 0xc000
    2020-08-12T05:40:21.165Z DEBUG modem << SPM: NS MSP at 0x20027aa8
    2020-08-12T05:40:21.168Z DEBUG modem << SPM: NS reset vector at 0xd3bd
    2020-08-12T05:40:21.170Z DEBUG modem << SPM: prepare to jump to Non-Secure image.
    2020-08-12T05:40:21.360Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
    2020-08-12T05:40:21.368Z DEBUG modem << The AT host sample started
    2020-08-12T05:40:31.203Z DEBUG modem >> AT+CGMR
    2020-08-12T05:40:31.217Z DEBUG modem << mfw_nrf9160_1.2.0
    2020-08-12T05:40:31.219Z DEBUG modem << OK
    

Reply
  • Unfortunately, it didn't help. The device keeps restarting after sending command AT+CFUN=1.

    2020-08-12T05:39:42.767Z INFO Application data folder: C:\Users\y.morgunov\AppData\Roaming\nrfconnect\pc-nrfconnect-linkmonitor
    2020-08-12T05:39:42.833Z DEBUG App pc-nrfconnect-linkmonitor v1.1.4 official
    2020-08-12T05:39:42.834Z DEBUG App path: C:\Users\y.morgunov\.nrfconnect-apps\node_modules\pc-nrfconnect-linkmonitor
    2020-08-12T05:39:42.834Z DEBUG nRFConnect 3.4.2 is supported by the app (^3.2.0)
    2020-08-12T05:39:42.834Z DEBUG nRFConnect path: C:\Users\y.morgunov\AppData\Local\Programs\nrfconnect\resources\app.asar
    2020-08-12T05:39:42.834Z DEBUG HomeDir: C:\Users\y.morgunov
    2020-08-12T05:39:42.834Z DEBUG TmpDir: C:\Users\YDBE4~1.MOR\AppData\Local\Temp
    2020-08-12T05:39:42.840Z VERBOSE Could not fetch serial number for serial port at COM1
    2020-08-12T05:39:42.841Z VERBOSE Could not fetch serial number for serial port at COM20
    2020-08-12T05:39:47.994Z INFO Modem port is opened
    2020-08-12T05:39:48.002Z DEBUG modem >> AT+CFUN?
    2020-08-12T05:39:48.019Z DEBUG modem << +CFUN: 0
    2020-08-12T05:39:48.022Z DEBUG modem << OK
    2020-08-12T05:40:16.275Z DEBUG modem >> AT+CFUN=1
    2020-08-12T05:40:16.318Z DEBUG modem << OK
    2020-08-12T05:40:20.868Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
    2020-08-12T05:40:20.883Z DEBUG modem << Flash regionsDomainPermissions
    2020-08-12T05:40:20.888Z DEBUG modem << 00 00 0x00000 0x08000 Securerwxl
    2020-08-12T05:40:20.891Z DEBUG modem << 01 31 0x08000 0x100000 Non-Securerwxl
    2020-08-12T05:40:20.894Z DEBUG modem << Non-secure callable region 0 placed in flash region 0 with size 32.
    2020-08-12T05:40:21.056Z DEBUG modem << SRAM regionDomainPermissions
    2020-08-12T05:40:21.061Z DEBUG modem << 00 07 0x00000 0x10000 Securerwxl
    2020-08-12T05:40:21.063Z DEBUG modem << 08 31 0x10000 0x40000 Non-Securerwxl
    2020-08-12T05:40:21.066Z DEBUG modem << PeripheralDomainStatus
    2020-08-12T05:40:21.069Z DEBUG modem << 00 NRF_P0               Non-SecureOK
    2020-08-12T05:40:21.073Z DEBUG modem << 01 NRF_CLOCK            Non-SecureOK
    2020-08-12T05:40:21.076Z DEBUG modem << 02 NRF_RTC0             Non-SecureOK
    2020-08-12T05:40:21.084Z DEBUG modem << 03 NRF_RTC1             Non-SecureOK
    2020-08-12T05:40:21.085Z DEBUG modem << 04 NRF_NVMC             Non-SecureOK
    2020-08-12T05:40:21.088Z DEBUG modem << 05 NRF_UARTE1           Non-SecureOK
    2020-08-12T05:40:21.090Z DEBUG modem << 06 NRF_UARTE2           SecureSKIP
    2020-08-12T05:40:21.100Z DEBUG modem << 07 NRF_TWIM2            Non-SecureOK
    2020-08-12T05:40:21.103Z DEBUG modem << 08 NRF_SPIM3            Non-SecureOK
    2020-08-12T05:40:21.105Z DEBUG modem << 09 NRF_TIMER0           Non-SecureOK
    2020-08-12T05:40:21.107Z DEBUG modem << 10 NRF_TIMER1           Non-SecureOK
    2020-08-12T05:40:21.109Z DEBUG modem << 11 NRF_TIMER2           Non-SecureOK
    2020-08-12T05:40:21.115Z DEBUG modem << 12 NRF_SAADC            Non-SecureOK
    2020-08-12T05:40:21.118Z DEBUG modem << 13 NRF_PWM0             Non-SecureOK
    2020-08-12T05:40:21.120Z DEBUG modem << 14 NRF_PWM1             Non-SecureOK
    2020-08-12T05:40:21.121Z DEBUG modem << 15 NRF_PWM2             Non-SecureOK
    2020-08-12T05:40:21.125Z DEBUG modem << 16 NRF_PWM3             Non-SecureOK
    2020-08-12T05:40:21.132Z DEBUG modem << 17 NRF_WDT              Non-SecureOK
    2020-08-12T05:40:21.134Z DEBUG modem << 18 NRF_IPC              Non-SecureOK
    2020-08-12T05:40:21.136Z DEBUG modem << 19 NRF_VMC              Non-SecureOK
    2020-08-12T05:40:21.138Z DEBUG modem << 20 NRF_FPU              Non-SecureOK
    2020-08-12T05:40:21.143Z DEBUG modem << 21 NRF_EGU1             Non-SecureOK
    2020-08-12T05:40:21.150Z DEBUG modem << 22 NRF_EGU2             Non-SecureOK
    2020-08-12T05:40:21.152Z DEBUG modem << 23 NRF_DPPIC            Non-SecureOK
    2020-08-12T05:40:21.154Z DEBUG modem << 24 NRF_GPIOTE1          Non-SecureOK
    2020-08-12T05:40:21.156Z DEBUG modem << 25 NRF_REGULATORS       Non-SecureOK
    2020-08-12T05:40:21.158Z DEBUG modem << SPM: NS image at 0xc000
    2020-08-12T05:40:21.165Z DEBUG modem << SPM: NS MSP at 0x20027aa8
    2020-08-12T05:40:21.168Z DEBUG modem << SPM: NS reset vector at 0xd3bd
    2020-08-12T05:40:21.170Z DEBUG modem << SPM: prepare to jump to Non-Secure image.
    2020-08-12T05:40:21.360Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
    2020-08-12T05:40:21.368Z DEBUG modem << The AT host sample started
    2020-08-12T05:40:31.203Z DEBUG modem >> AT+CGMR
    2020-08-12T05:40:31.217Z DEBUG modem << mfw_nrf9160_1.2.0
    2020-08-12T05:40:31.219Z DEBUG modem << OK
    

Children
No Data
Related