Modem trace for modem fw 1.2.3 with cellular monitor

Hey.

I'm trying to get the modem trace log in a readable format. 

I've redirected my uart0 to rtt and put uart1 on previosuly uart0 pins to capture the output. 
The cellular monitor doesn't pick up any information form the trace output - no data displayed, but mtrace file is logged.
I can see some human readable data in there, so something is working at least.

The cellular monitor says modem fw 1.3.1+ req, but is there any way to get it parse for fw 1.2.3 (the database at least list all versions so idk?)

Or if there is an easier way to get the AT command sequence extracted that would be helpful as well.

Parents Reply Children
  • # SEGGER J-Link RTT Viewer V7.66a Terminal Log File
    # Compiled: 15:16:36 on May 19 2022
    # Logging started @ 04 Sep 2023 15:47:48
    
    # Logging stopped @ 04 Sep 2023 16:12:35
    

    i did check with hex editor, it is empty 

  • Sorry for long reply again (this is not a poject that is in active dev)

    I realized I haven't mentiod ncs version, but it's ncs1.8.0
    and checked that the version specific configs:

    CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y
    CONFIG_NRF_MODEM_LIB_TRACE_MEDIUM_RTT=y
    are indeed set.
  • Just to verify, please follow these steps

    1. Go into prj.conf and add these two lines (which you have done):
    CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y
    CONFIG_NRF_MODEM_LIB_TRACE_MEDIUM_RTT=y

     

    You might also need to disable other RTT logging channels:
    CONFIG_LOG_BACKEND_RTT=n
    CONFIG_RTT_CONSOLE=n

     

    2. Compile and flash the project.

     

    3. Open JLinkRTTViewer, select device "nRF9160_xxaa"

     

    4. When successfully connected, go to "Logging" -> "Start Data Logging", and select a path to save the file.

     

    5. See that the .log file grows in size. When finished tracing, stop data logging and rename the .log file to .bin

    6. Open the recorded .bin file in Cellular Monitor.

Related