<?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>RTT viewer logging doesn&amp;#39;t show device log on custom application.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119984/rtt-viewer-logging-doesn-t-show-device-log-on-custom-application</link><description>We tried to see device logs from our target. 
 We use dfu bootloader for our custom target. 
 I enable RTT logging on our custom source for our target. 
 
 Then we can see device logs of bootloader but can&amp;#39;t see logs of main application. 
 For logs, we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Mar 2025 07:33:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119984/rtt-viewer-logging-doesn-t-show-device-log-on-custom-application" /><item><title>RE: RTT viewer logging doesn't show device log on custom application.</title><link>https://devzone.nordicsemi.com/thread/528968?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2025 07:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00988148-8d8a-4152-8749-6a9d64a22439</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Our custom linker file has a different RAM address and size between DFU bootloader and main application.&lt;/p&gt;
&lt;p&gt;After setting RAM address and size of main app. on RTT Viewer, we checked the device logs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jaehong Park&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT viewer logging doesn't show device log on custom application.</title><link>https://devzone.nordicsemi.com/thread/528866?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 13:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f188a490-5f18-4047-8f0a-69d353b9d222</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The way that RTT works is by being assigned a partition in the RAM, and it just stores whatever you write to your log into the RAM starting at that address. The RTT Viewer just looks through the RAM for this keyword, and when it finds it, it will start reading the RAM from there during runtime.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you have two applications running, it will just find the first one, and countinue reading from there. So the absolute simplest way to access the RTT log from the application would be to disable RTT Logging in the bootloader. If that doesn&amp;#39;t work, you can look at the map file in your build folder, and look for the location of the application&amp;#39;s RTT buffer, and enter this when starting your RTT viewer, either as an address, or a search range.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wish the RTT Viewer would say somewhere on what address it found the RTT buffer, because then you could just set up a search range after the initial buffer, but unfortunately it doesn&amp;#39;t. On top of that, every time you build your application, the buffer location may change, so you need to locate it again. Therefore, I suggest that you disable the RTT Logging in the bootloader, if you don&amp;#39;t have any issues with the bootloader at the moment.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT viewer logging doesn't show device log on custom application.</title><link>https://devzone.nordicsemi.com/thread/528503?ContentTypeID=1</link><pubDate>Sun, 23 Mar 2025 12:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12bd4386-14fd-4883-bf56-4a9b4d300bdf</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;Sorry,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using legacy SDK, nRF SDK 17.1.x version, nRF52833&amp;#39;s custom target and softdevice s113.&lt;/p&gt;
&lt;p&gt;We added sdk_config.h file as followings.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition, we don&amp;#39;t use app_config.h on our project.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6327.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../6327.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The problem of logging is not on DFU bootloader but on our main application.&lt;/p&gt;
&lt;p&gt;Please any check points for us to do?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT viewer logging doesn't show device log on custom application.</title><link>https://devzone.nordicsemi.com/thread/528331?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 08:17:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34b53afd-e0b4-432e-906e-cdb6d83fb145</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Did you select the correct device from the device list? Are the config files in your custom application contain the following configs?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_UART_CONSOLE=n
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>