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

NRF9160 Modem Trace not working

Hi,

I am trying to capture a modem trace to send to Nordic for analysis, however Nordic says they are unable to open the ones I've captured so far. I am using the NRF9160 with a custom board.

My method for capturing a modem trace is:

  1. Configuring UART1 in the devicetree to the USB VCOM port (Essentially swapping UART0 and UART1, so the output is modem trace instead of logging).
    1. We also tried using other pins as the UART1 TX,RX and capturing the modem trace through them.
    2. The baud rate is set to 115200
  2. Add CONFIG_BSD_LIBRARY_TRACE_ENABLED=y to the projects prj.conf
  3. Send the AT CMD AT%XMODEMTRACE=1,2 during program initialization
  4. Open the nRF Connect Desktop Appliction (v3.3.0) and the Trace Collector App (v1.0.0)
  5. Selecting the com port connected to the modem trace output.
  6. Starting capture when the device is running, or resetting the device and starting capture at the same time.
  7. Stopping the capture after we have recorded the events we are trying to capture.
  8. Copying the bin file and sending to Nordic.

Is there anything I am missing or doing wrong that might affect the modem trace?

Thanks

Parents Reply
  • As long as the AT command returns success, that should work.

    When starting logging in trace collector, you should see that the file size increases in the order of kB/s, especially in the beginning of your program.

     

    If you have issue wrt. setting %XMODEMTRACE, try running it first in at_client, and send a AT+CFUN=0 afterwards. This will store it persistently inside the modem configuration, and when you flash your own application afterwards, the traces will be default on. You'll still need the CONFIG_BSD_LIBRARY_TRACE_ENABLED=y set in your config.

     

    Kind regards,

    Håkon

Children
Related