nRF9160 modem_shell example code crashes when connecting to CMW500

 SDK1.9.1 with example of modem_shell. 

modem fw is up to date, version 1.3.2

the fw crashes as soon as CMW500 trying to establish a connection.

Parents
  • "Stack overflow" is a keyword here. Try using addr2line using LR in order to find out what caused the crash. It looks to be related to something in the time_thread in date_time_core.c.

    For 0x41000000/lr, type the following into the command line:

    arm-none-eabi-addr2line -e <path to build\zephyr\zephyr.elf> 0x41000000

    This will return a the line in the code related to the crash. Looking it up might give you some hints regarding the crash. This line would also be a good start for setting a break point.

  • what's the command line you are referring to? Do you mean the dev kit? No, I got the message from the UART port which is on our customized board build up with nRF9160 chipset. We don't have the resource to hook our customized board and debug it on the fly. I was hoping you, Nordic team, could replicate the error and updated the example code and I can test it from there. 

  • It looks like you are almost there. You can run this command regardless of being connected to CMW500. However, you need to be running the command on a computer with access to the build folder for your application(it looks like you are doing so). The goal is to debug your application as arm-none-eabi-addr2line can be used to find out which part of your application's code was involved when Stack overflow occurred.

    Thank you for posting the output from cmd. It is a good start that the computer is able to find arm-none-eabi-addr2line. Next thing, try removing '<' and '>' and insert the address in 'r14/lr' from the image in your initial post:  . It will also be interesting to see what is returned when inputting what is in r15/pc:

    Please try these two commands and post what is returned:

    arm-none-eabi-addr2line -e C:\MTRepos\nordic\myapps\my_modem_shell\build\zephyr\zephyr.elf 0x41000000

    arm-none-eabi-addr2line -e C:\MTRepos\nordic\myapps\my_modem_shell\build\zephyr\zephyr.elf 0xaaaaaaaa

  • Hi Bo, sorry for the delay.

    Thank you for sharing the output from addr2line. Unfortunately, the output does not help as much as I was hoping for.

    We would like to reproduce the issue:

    • Would you be able to share the configuration file for CMW500?
    • Which board are you using?
    • If you are using the DK, then which hardware revision?
    • If you are using a custom board, which revision of the nRF9160 SIP are you using? The SIP should be marked with either 'B0' or B1'.
  • You could read out your revision by either AT command: AT%HWVERSION or look on the nRF9160 SIP for marking "B1".

    "B1" -> Revision 2

    "B0" -> Revision 1 

    Only revision 2 is supported by modem firmware v1.3.2.

  • Here is the SiP, HW version should be B1. I will upload CMW500 configuration file later.

Reply Children
Related