<?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 not working with NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89665/jlink-rtt-viewer-not-working-with-nrf52832</link><description>I am using NRF52832 DK, SDK 17.1.0, S132 Softdevice, Segger 5.42a and rtt viewer v7.62. 
 I am using blinky code from example.After building and debug the code I disconnect the board and reconnect it through external rtt but it does not show any output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Jul 2022 13:18:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89665/jlink-rtt-viewer-not-working-with-nrf52832" /><item><title>RE: Jlink RTT Viewer not working with NRF52832</title><link>https://devzone.nordicsemi.com/thread/377880?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 13:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa7bfa2f-1cb9-4776-9dc8-61c963cbaca4</guid><dc:creator>tgao</dc:creator><description>&lt;p&gt;Hi, I am also experiencing the same problem with the same board. I am also using UART for a separate logging system involving printf(), but I also want to get NRF_LOG working, because I want to see the logs in the bootloader and other areas where UART cannot readily display. I have tried everything suggested in this thread so far but still don&amp;#39;t see any logs in RTT viewer. Can anyone advise?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jlink RTT Viewer not working with NRF52832</title><link>https://devzone.nordicsemi.com/thread/375945?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 07:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:755c5f44-cec0-49a4-b126-419bd4df3f49</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you might have to restart the J-Link RTT Viewer program.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jlink RTT Viewer not working with NRF52832</title><link>https://devzone.nordicsemi.com/thread/375844?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 14:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e75259cb-c194-4912-8373-43ee8c5ef59d</guid><dc:creator>meet10</dc:creator><description>&lt;p&gt;Hi Jared&lt;/p&gt;
&lt;p&gt;instead of blinky example i am referring to twi_sensor example as i wanted to work with rtt. I have totally modify the code to simple one and in sdkconfig i have have enabled&amp;nbsp;&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED 1,NRF_LOG_ENABLED 1 and&amp;nbsp;NRF_LOG_BACKEND_UART_ENABLED 0 to use rtt instead of uart.&lt;/p&gt;
&lt;p&gt;The modified code is&lt;/p&gt;
&lt;p&gt;#include &amp;lt;stdbool.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdint.h&amp;gt;&lt;/p&gt;
&lt;p&gt;#include &amp;quot;nrf.h&amp;quot;&lt;br /&gt;#include &amp;quot;nordic_common.h&amp;quot;&lt;br /&gt;#include &amp;quot;boards.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_delay.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_log.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_log_ctrl.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_log_backend_rtt.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_log_default_backends.h&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;/**&lt;br /&gt; * @brief Function for application main entry.&lt;br /&gt; */&lt;br /&gt;int main(void)&lt;br /&gt;{&lt;/p&gt;
&lt;p&gt;// Initialize the Logger module and check if any error occured during initialization&lt;br /&gt; APP_ERROR_CHECK(NRF_LOG_INIT(NULL));&lt;br /&gt; &lt;br /&gt; // Initialize the default backends for nrf logger&lt;br /&gt; NRF_LOG_DEFAULT_BACKENDS_INIT();&lt;/p&gt;
&lt;p&gt;// print the log msg over uart port&lt;br /&gt; printf(&amp;quot;This is log data from nordic device..\r\n&amp;quot;);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;This is log data from nordic device..\r\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;// a variable to hold counter value&lt;br /&gt; uint32_t count = 0;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; while (true)&lt;br /&gt; {&lt;/p&gt;
&lt;p&gt;// Dsiplay the logger info with variable&lt;br /&gt; printf(&amp;quot;Counter Value: %d \r\n&amp;quot;, count);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;Counter Value: %d \r\n&amp;quot;, count);&lt;br /&gt; nrf_delay_ms(500); // delay for 500 ms&lt;br /&gt; count++; // increment the counter by 1&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Before diconnecting I get logs in RTT viewer but after diconnecting DK and again connecting not logs are shown&lt;/p&gt;
&lt;p&gt;Output before disconnecting&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/rtt_5F00_viewer_5F00_1.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;After disconnecting and again connecting&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3755.rtt_5F00_viewer.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jlink RTT Viewer not working with NRF52832</title><link>https://devzone.nordicsemi.com/thread/375733?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 10:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b8e1c7-d444-489e-ac0a-b5064c8686e6</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;The ble_app_blinky example will use the UART as backend for the logger module not RTT:&lt;/p&gt;
&lt;p&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/pastedimage1657103427476v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jlink RTT Viewer not working with NRF52832</title><link>https://devzone.nordicsemi.com/thread/375720?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 09:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94905bd4-37c5-42e3-b995-68d94e124d8f</guid><dc:creator>meet10</dc:creator><description>&lt;p&gt;Hi Jared&lt;/p&gt;
&lt;p&gt;Thank for your response&lt;/p&gt;
&lt;p&gt;I am using the same firmware on both the boards. No I have not modified blinky example. The other boards which i have tried are NRF538340 and NRF52833&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jlink RTT Viewer not working with NRF52832</title><link>https://devzone.nordicsemi.com/thread/375698?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 08:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e32e1d-3661-447b-9141-5c8a566d19c2</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the same firmware on both boards? Have you modified anything from the blinky example?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>