<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to capture nrf9160 modem traces using RTT?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104983/how-to-capture-nrf9160-modem-traces-using-rtt</link><description>From here: 
 https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_trace_collector%2FUG%2Ftrace_collector%2Fcollect_modem_trace_custom.html 
 It says it is possible to collect traces via RTT. How to do this exactly? I&amp;#39;m using a custom board running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Oct 2023 18:55:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104983/how-to-capture-nrf9160-modem-traces-using-rtt" /><item><title>RE: How to capture nrf9160 modem traces using RTT?</title><link>https://devzone.nordicsemi.com/thread/452069?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 18:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36f83599-806a-406f-9130-02bdae45a175</guid><dc:creator>C.T.</dc:creator><description>&lt;p&gt;Thanks! It works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to capture nrf9160 modem traces using RTT?</title><link>https://devzone.nordicsemi.com/thread/452029?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 14:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e497fa-efc5-4246-8136-b672cb263830</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi C.T.,&lt;/p&gt;
&lt;p&gt;Sorry for confusing you,&amp;nbsp;Cellular Monitor is the final release app of Trace Collector V2 preview. I will report this to do an update on documentation.&lt;/p&gt;
&lt;p&gt;Here are the steps to collect modem traces from RTT for the NCS v2.4.2 SLM application.&lt;/p&gt;
&lt;p&gt;1. Adding the following overaly-rtt-modem-trace.conf to your building configuration.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRF_MODEM_LIB_TRACE=y
CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_RTT=y
CONFIG_USE_SEGGER_RTT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&lt;span&gt;Build and program firmware to the device, then use the command in the following log to collect raw trace data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;H:\&amp;gt;nrfjprog --reset &amp;amp;&amp;amp; JLinkRTTLogger -Device NRF9160_XXAA -If SWD -Speed 50000  C:/tmp/modemtraces.bin
Applying system reset.
Run.
SEGGER J-Link RTT Logger
Compiled Jun 28 2023 13:41:32
(c) 2016-2017 SEGGER Microcontroller GmbH, www.segger.com
         Solutions for real time microcontroller applications

Default logfile path: C:\Users\chs1\AppData\Roaming\SEGGER

------------------------------------------------------------


------------------------------------------------------------
Connected to:
  SEGGER J-Link (unknown)
  S/N: 960035261

Searching for RTT Control Block...OK.
3 up-channels found:
0: Terminal
1: modem_trace
2:
Selected RTT Channel description:
  Index: 1
  Name:  modem_trace
  Size:  1024 bytes.

Output file: C:/tmp/modemtraces.bin

Getting RTT data from target. Press any key to quit.
------------------------------------------------------------

Transfer rate: 1.41 KB/s Data written: 287.56 KB B
Shutting down... Done.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3. Open the modemtraces.bin file with WireShark through&amp;nbsp;&lt;span&gt;Cellular Monitor-&amp;gt;Open trace file in Wireshark.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1698156781705v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>