<?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>Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119614/unable-to-connect-to-device-with-rttviewer-unless-specific-log-level-enabled</link><description>We&amp;#39;re experiencing issues with RTT logging on an nRF9151-based project using NCS 2.9.0. When `CONFIG_LOG_DEFAULT_LEVEL` is set to `3`, RTT Viewer fails to connect to the device entirely. If we change the logging level to `4` (debug level), RTT connects</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Mar 2025 19:38:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119614/unable-to-connect-to-device-with-rttviewer-unless-specific-log-level-enabled" /><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527912?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 19:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ebe813a-5191-4fe5-a334-9e4c79760a85</guid><dc:creator>jackson.burnette</dc:creator><description>&lt;p&gt;I seem to have obtained access with nrfjprog --recover. I also suspect that debug steps were&amp;nbsp;confused by multiple jlink installations not playing well together. The only way I&amp;#39;ve re-entered the failure scenario is by trying to switch between installations for jlink.&lt;/p&gt;
&lt;p&gt;Thanks for your help, Sigurd.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527905?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 18:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d69c0b-007c-4aa3-8784-c703b813e6ca</guid><dc:creator>jackson.burnette</dc:creator><description>&lt;p&gt;I&amp;#39;m flashing with west. I&amp;#39;ve tried `west flash --recover` and then re flashing and get the same pop up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527266?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 18:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d54bee5-d2b7-4021-afd2-088dab2e987e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;How are programming the device? west , nrfutil ?&lt;/p&gt;
&lt;p&gt;Try calling&amp;nbsp;&lt;span&gt;nrfutil device recover, before programming&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527262?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 18:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9325b31-0557-47f9-baed-7b37443ffd6e</guid><dc:creator>jackson.burnette</dc:creator><description>&lt;p&gt;Is there a config value that can be used to disable approtect? I seem to have to go through the erase step every time I flash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527255?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 17:20:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a35ddf5-87ea-4696-8cbd-37dea5b415b5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user="jackson.burnette"] However, I get a prompt now about the device being secured and that internal flash needs to be erased.[/quote]
&lt;p&gt;This is the approtect, see this link:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9151/page/dif.html#ariaid-title3"&gt;https://docs.nordicsemi.com/bundle/ps_nrf9151/page/dif.html#ariaid-title3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try flashing the firmware again, and connect with RTT viewer again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527229?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 15:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd2d63f-51b4-4584-9077-d9e2c60b0e74</guid><dc:creator>jackson.burnette</dc:creator><description>&lt;p&gt;Connection to the device now happens consistently, thanks! However, I get a prompt now about the device being secured and that internal flash needs to be erased.&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/Screenshot-2025_2D00_03_2D00_13-at-8.23.34_2F20_AM.png" /&gt;&lt;/p&gt;
&lt;p&gt;Additionally, no logs are received regardless of the selected log level. Is there some other misconfiguration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527222?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 14:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:280063ae-147d-44a1-8aa3-c5e028def43e</guid><dc:creator>Sigurd</dc:creator><description>[quote user="jackson.burnette"]selected&amp;nbsp;NRF9160_XXAA,[/quote]
&lt;p&gt;Could you try with&amp;nbsp;&lt;span&gt;nRF9151_XXCA instead?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527203?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 14:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53c33d0a-232a-46bd-8eee-ed26f340a6d5</guid><dc:creator>jackson.burnette</dc:creator><description>&lt;p&gt;Using&amp;nbsp;JLink_V816, selected&amp;nbsp;NRF9160_XXAA, just get a pop up screen that says &amp;quot;Could not connect to target&amp;quot;&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/Screenshot-2025_2D00_03_2D00_13-at-7.06.03_2F20_AM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/527113?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 09:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01a85208-0ac7-4a97-b9d5-854de39e06de</guid><dc:creator>Sigurd</dc:creator><description>[quote user=""]RTT Viewer fails to connect to the device entirely[/quote]
&lt;p&gt;Do you get any error? or just not any output?&lt;/p&gt;
&lt;p&gt;What J-link version are you using? did you select&amp;nbsp;&lt;span&gt;nRF9151_XXCA when connecting with RTT viewer?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/526594?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 15:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50a599b7-efed-464a-a3e7-5367a71e2322</guid><dc:creator>jackson.burnette</dc:creator><description>&lt;p&gt;Here is our prj.conf in case it is helpful&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8540.prj.conf"&gt;devzone.nordicsemi.com/.../8540.prj.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/526586?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 14:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ecde7d-008d-46bb-9389-485043fc26dc</guid><dc:creator>jackson.burnette</dc:creator><description>&lt;p&gt;With log level 4, I&amp;#39;ve set the&amp;nbsp;CONFIG_SEGGER_RTT_BUFFER_SIZE_UP all the way up to 16KB w/o any change to logs actually output. Still looks like this&lt;/p&gt;
&lt;p&gt;00&amp;gt; [00:00:17.420,349] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x200109cc lock_count: 1&lt;br /&gt;00&amp;gt; --- 5 messages dropped ---&lt;br /&gt;00&amp;gt; [00:00:17.421,020] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x200109cc lock_count: 1&lt;br /&gt;00&amp;gt; --- 5 messages dropped ---&lt;br /&gt;00&amp;gt; [00:00:17.421,691] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x200109cc lock_count: 1&lt;br /&gt;00&amp;gt; --- 5 messages dropped ---&lt;br /&gt;00&amp;gt; [00:00:17.422,363] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x200109cc lock_count: 1&lt;br /&gt;00&amp;gt; --- 5 messages dropped ---&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/526584?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 14:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0690dcff-d48e-4fde-8663-cce4da84ef18</guid><dc:creator>jackson.burnette</dc:creator><description>&lt;p&gt;Thanks Sigurd, that may indeed help with the dropped logs. I&amp;#39;ll try it and report back.&lt;/p&gt;
&lt;p&gt;However, my main concern is inability to even connect to the target when log levels are not configured just so. Do you have any leads for me on that front?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with RTTViewer unless specific log level enabled</title><link>https://devzone.nordicsemi.com/thread/526352?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 13:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0226352-e4b8-442f-adee-52da58a0252e</guid><dc:creator>Sigurd</dc:creator><description>[quote user=""]00&amp;gt; --- 5 messages dropped ---[/quote]
&lt;p&gt;Try increasing&amp;nbsp;&lt;span&gt;CONFIG_SEGGER_RTT_BUFFER_SIZE_UP&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>