<?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>JLink RTT Viewer Wont Log</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25688/jlink-rtt-viewer-wont-log</link><description>Hello! 
 I am using the nRF52832 with nRF5_SDK 14.0.0. with a JLink connection. My OS is Ubuntu 16.04. 
 After placing NRF_LOG_INFO() statements around my code, connecting to the nRF52832_XXAA device with &amp;#39;JLinkExe&amp;#39;, and running &amp;#39;JLinkRTTClient&amp;#39;, only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2017 22:58:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25688/jlink-rtt-viewer-wont-log" /><item><title>RE: JLink RTT Viewer Wont Log</title><link>https://devzone.nordicsemi.com/thread/101195?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 22:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5704adfb-cb08-40a6-8697-7ad197b6f4ba</guid><dc:creator>Krzysztof Zaraska</dc:creator><description>&lt;p&gt;It&amp;#39;s safe as in it won&amp;#39;t hurt the chip. As for the RTT Viewer, I&amp;#39;ve seen it hang/crash randomly so I wouldn&amp;#39;t  trust it with my life...&lt;br /&gt;
By the way please take time to read chapter 13 of the J-Link user manual which describes RTT. There are some pitfalls regaring locking and buffering you should be aware of (section 13.4.2.2.).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink RTT Viewer Wont Log</title><link>https://devzone.nordicsemi.com/thread/101196?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 18:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f0fde8-d828-40d5-befe-7ab7377c2486</guid><dc:creator>zoltan</dc:creator><description>&lt;p&gt;A 10ms delay between the flush and the reset did the trick! Thanks!
As a side note, I don&amp;#39;t see a function to de-initialize the logs before a reset. Is it safe to keep initializing the logs after every reset without de-initializing somehow?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink RTT Viewer Wont Log</title><link>https://devzone.nordicsemi.com/thread/101194?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 17:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca6947a-0e95-4670-a368-e6e027d24e7f</guid><dc:creator>Krzysztof Zaraska</dc:creator><description>&lt;ol&gt;
&lt;li&gt;sd_power_system_off() should not return, and the CPU wakeup should cause a reset. HOWEVER, if you have debugger (RTT) connected, then sd_power_system_off() returns an error. In other words, you cannot put the device to sleep if RTT is connected. Sorry :)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/90414/why-does-nrf52-hrs-sdk11-example-sd_power_off-return-6/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;
&lt;p&gt;Try putting a delay between NRF_LOG_FINAL_FLUSH() and SystemReset(). Basically, RTT uses a ring buffer, and the client tracks CPU writes. If CPU resets before the client reads all data (thus returning the buffer to the default state) then the client reads stuff from the wrong place.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;NRF_LOG uses internal buffering. Try calling SEGGER_RTT_Write() and friends directly and see what happens (when calling these, BufferIndex should be 0).&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>