<?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>UART and Logger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118283/uart-and-logger</link><description>I want to use the UART to receive data, but that doesn&amp;#39;t look possible if I use the Logging Module. I don&amp;#39;t see where the logger module will interrupt my code to tell me I&amp;#39;ve received a character. 
 So must I disable the Logger to gain full interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Aug 2025 19:44:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118283/uart-and-logger" /><item><title>RE: UART and Logger</title><link>https://devzone.nordicsemi.com/thread/546668?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2025 19:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f29559b5-f4ab-4ed7-a505-1a33496db1da</guid><dc:creator>Jim Logsdon</dc:creator><description>&lt;p&gt;&lt;span&gt;Please close this ticket.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Logger</title><link>https://devzone.nordicsemi.com/thread/520731?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 13:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b422bfcb-5882-4a5e-8919-6290962d9226</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;Could you try adding the following as well:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_RTT_CONSOLE=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_CONSOLE=n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_MODE_IMMEDIATE=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_PRINTK=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;Ensure you&amp;#39;re using the correct tool to view RTT output. The standard UART terminal won&amp;#39;t show RTT logs. You need to use a tool like SEGGER&amp;#39;s RTT Viewer or J-Link RTT Viewer&amp;nbsp;or the RTT Console in nRF Connect for VS Code to see the RTT output.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Swathy&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Logger</title><link>https://devzone.nordicsemi.com/thread/519875?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 20:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fcd7a34-5602-4602-96a5-55743ec618bf</guid><dc:creator>Jim Logsdon</dc:creator><description>&lt;p&gt;I&amp;#39;m not having success make the esb_ptx sample use the RTT instead of the UART.&amp;nbsp; I&amp;#39;ve pasted the configuration you recommended into prj.conf as you recommended:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Copyright (c) 2019 Nordic Semiconductor ASA&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NCS_SAMPLES_DEFAULTS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ESB&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DK_LIBRARY&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USE_SEGGER_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_UART&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The esb_ptx application still writes out the uart and not the RTT.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I get the following problems reported:&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img style="max-height:172px;max-width:534px;" height="172" src="https://devzone.nordicsemi.com/resized-image/__size/1068x344/__key/communityserver-discussions-components-files/4/pastedimage1737665242130v1.png" width="534" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Any idea why it&amp;#39;s not working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Logger</title><link>https://devzone.nordicsemi.com/thread/519793?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 13:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:989a41cf-1d1c-4999-8048-c8c629e39483</guid><dc:creator>SwRa</dc:creator><description>[quote user="Jim Logsdon"] Can you still use the debug interface for debugging while also using it as the Logger back end?[/quote]
&lt;p&gt;Yes, it should be possible. &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;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Logger</title><link>https://devzone.nordicsemi.com/thread/519790?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 13:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8b25eb6-ffbe-46f5-9e80-3bf925386cdc</guid><dc:creator>Jim Logsdon</dc:creator><description>&lt;p&gt;Oh.&amp;nbsp; That makes so much sense.&amp;nbsp; Can you still use the debug interface for debugging while also using it as the Logger back end?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Logger</title><link>https://devzone.nordicsemi.com/thread/519778?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 13:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ee72431-108c-461d-9cd5-956de9c2edd7</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;RTT (Real-Time Transfer) on the nRF52 DK does not use a dedicated physical connection like UART does. Instead, RTT operates through the existing debug interface.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Jim Logsdon"]I see that the UART is connected from the nRF52832 to the nRF5340, but I don&amp;#39;t see anything connections labelled RTT.[/quote]
&lt;p&gt;The RTT is not a peripheral on the nRF in the same way.&amp;nbsp;RTT works by having the debugger read and write to specific memory locations on the nRF52832 chip. This means it doesn&amp;#39;t require any additional pins or physical connections beyond what&amp;#39;s already used for debugging. It is just the debugger reading some memory areas on the nRF, which doesn&amp;#39;t affect the performance of the chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Swathy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Logger</title><link>https://devzone.nordicsemi.com/thread/519765?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 13:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94459436-2f35-472e-92ab-35ed29679684</guid><dc:creator>Jim Logsdon</dc:creator><description>&lt;p&gt;Thank you for such a quick response!&amp;nbsp; &amp;nbsp;I will work to use the RTT for logging.&lt;/p&gt;
&lt;p&gt;What is the physical layer for RTT on the nRF52DK board?&lt;/p&gt;
&lt;p&gt;I see that the UART is connected from the nRF52832 to the nRF5340, but I don&amp;#39;t see anything connections labelled RTT.&lt;/p&gt;
&lt;p&gt;Thanks, and hopefully this is my last question.&lt;/p&gt;
&lt;p&gt;Jim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Logger</title><link>https://devzone.nordicsemi.com/thread/519756?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 12:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d082d2fa-5624-405c-8792-1c36025ef06f</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;UART0 is usually used for logging..&amp;nbsp;The logging module can be configured to use a different backend, such as the RTT.. This ensures that the UART instance is free to be used for your application.. To do this, you need to add the following to prj.conf:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USE_SEGGER_RTT=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_UART=n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You could also use another UART instance (eg.: you can use UART1 to receive data if UART0 is used for logging)&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>