<?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>Custom nRF5340 board not logging debug statements to JLinkRTTViewer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120670/custom-nrf5340-board-not-logging-debug-statements-to-jlinkrttviewer</link><description>I have a custom board (nrf5340) and can debug it, but it will not print to J-Link RTT Viewer. The main looks like this and I tested with a breakpoint on the LOG_DBG using my J-Link Plus, so I know it&amp;#39;s getting there. 
 
 
 
 I have this in the prj.conf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Apr 2025 14:05:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120670/custom-nrf5340-board-not-logging-debug-statements-to-jlinkrttviewer" /><item><title>RE: Custom nRF5340 board not logging debug statements to JLinkRTTViewer</title><link>https://devzone.nordicsemi.com/thread/533436?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 14:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fafbce4b-48d9-4ef6-9791-1d6f56ebb258</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;That&amp;#39;s great! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom nRF5340 board not logging debug statements to JLinkRTTViewer</title><link>https://devzone.nordicsemi.com/thread/532181?ContentTypeID=1</link><pubDate>Sat, 19 Apr 2025 18:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1ba788a-6861-4b6f-8688-0b396992f72c</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;It seems to be working. I ran it a few times and I think the config statement did it. I don&amp;#39;t know why it didn&amp;#39;t the first one or two times, but it seems to work pretty regularly now. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom nRF5340 board not logging debug statements to JLinkRTTViewer</title><link>https://devzone.nordicsemi.com/thread/531817?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 10:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c577b4d6-89da-4595-a096-14d3ac30f1b3</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;When I debug, I am in VS Code and press the debug button in nrfConnect (add-in), I get prompted to select core from the command prompt and select app, I open (or select) the jlink rTy&amp;nbsp;app and connect. I see the debug messages.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Otherwise I do a pristine build in VS Code on the nrfConnect add-in, when done I press flash, when done&amp;nbsp;I open (or select) jlink rtt viewer, I connect, which seems to work, but get no messages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom nRF5340 board not logging debug statements to JLinkRTTViewer</title><link>https://devzone.nordicsemi.com/thread/531808?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 08:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbd0872b-78cf-4731-ad01-1a1ff6287c52</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&amp;#39;&amp;#39;&lt;span&gt;Now when I run in debug mode, I get the printing in JLink RTT Viewer but when I build and flash I don&amp;#39;t.&amp;#39;&amp;#39; How do you build and flash? Do you mean you can not get any output on other serial terminal like putty or no output on Jlink RTT viewer?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you show me some output log or screenshot from your output terminal?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom nRF5340 board not logging debug statements to JLinkRTTViewer</title><link>https://devzone.nordicsemi.com/thread/531745?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 17:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c74da41-a4fa-4ed8-82ec-b88c00a152ae</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;I added these to the prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CONSOLE=y
CONFIG_LOG_BACKEND_UART=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now when I run in debug mode I get the printing in JLink RTT Viewer but when I build and flash I don&amp;#39;t.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom nRF5340 board not logging debug statements to JLinkRTTViewer</title><link>https://devzone.nordicsemi.com/thread/531741?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 16:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ed8b9bc-27c9-4093-9cc4-d85f61c97dce</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;RTT link viewer has several ports, sometime if it does not work for one terminal it can work for another. Did you try all? The first step you can do to check if any other serial terminal is open in your system. Try to close it and open the J-Link RTT viewer again.&lt;/p&gt;
&lt;p&gt;You can also try to add these&amp;nbsp;&lt;span&gt;CONFIG_CONSOLE=y and CONFIG_LOG_BACKEND_UART=n in the prj.conf file.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>