<?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>Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72173/having-the-rtt-viewer-after-dfu</link><description>Hello there, 
 
 I have been using RTT viewer since a while and its works fine only if i program that board without DFU, and if i program this board with DFU it says &amp;quot; could not connect to target &amp;quot; as below... 
 
 and it disturbs my BLE Connection also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Mar 2021 07:31:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72173/having-the-rtt-viewer-after-dfu" /><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/299643?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 07:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37fb0c87-07be-4c5d-be22-0b9007e347ff</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Rajender,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Add .rtt region into&amp;nbsp;flash_placement.xml as the figure&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/265520.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/299573?ContentTypeID=1</link><pubDate>Sat, 13 Mar 2021 05:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:125d51ab-09ae-4ae2-a93b-fe5e6caa91f1</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Since our project is ready to deploy in the location its very much important to conclude this issue ASAP&lt;/p&gt;
&lt;p&gt;so&amp;nbsp; i am requesting you to make this SES compatible ASAP.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Raj.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/299315?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 14:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da29a58e-ea3e-4444-bbaf-3b40c0cd8255</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Rajender,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That post was for&amp;nbsp;GCC. After the modification, you can build the project under&amp;nbsp;\armgcc to get the image by typing &amp;quot;make&amp;quot; in the command window. If you want to use segger,&amp;nbsp;&lt;/span&gt;&lt;span&gt;I will take time to look into how to set in the segger project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/298988?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 12:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5c2a2c-80d7-48ba-8cd5-fafdbd52534d</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am still can&amp;#39;t define that definition without error, and getting same error as before.&lt;/p&gt;
&lt;p&gt;I am using nrf52840(pca10056), SDKv15.1.0, SEGGER Embedded Studio v5.20(with nordic free license).&lt;/p&gt;
&lt;p&gt;&lt;img alt="no error screenshot" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/no-error.JPG" /&gt;&lt;img alt="error" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5165.error.JPG" /&gt;&lt;img alt="error after changes" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/error-after-changes.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;and i have changed linker script files&amp;nbsp;&lt;span&gt;nrf5_common.ld,&amp;nbsp;nrf52_common.ld as referred&amp;nbsp;post suggested.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;then do i need to move the RTT related definitions&amp;nbsp;as suggested in the 3rd point, if yes please help me to understand it clearly(i am confusing what he suggesting to do).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Raj.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/298940?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 09:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0af6fae-927c-44b6-b045-7354877ad502</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Rajender,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Define the macros in your app/sdk_config.h:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define SEGGER_RTT_ALIGNMENT 4
#define SEGGER_RTT_BUFFER_ALIGNMENT 4
#define SEGGER_RTT_SECTION &amp;quot;.rtt&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Allocate section in the linker script file. In nrf5x_common.ld as that &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The corresponding sections in the linker file look like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;SECTIONS
{
  . = ALIGN(4);
  .mem_section_dummy_ram :
  {
  }
  .log_dynamic_data :
  {
    PROVIDE(__start_log_dynamic_data = .);
    KEEP(*(SORT(.log_dynamic_data*)))
    PROVIDE(__stop_log_dynamic_data = .);
  } &amp;gt; RAM
  .fs_data :
  {
    PROVIDE(__start_fs_data = .);
    KEEP(*(.fs_data))
    PROVIDE(__stop_fs_data = .);
  } &amp;gt; RAM
  
  .rtt :
  {
    KEEP(*(.rtt))
  } &amp;gt; RAM

  
} INSERT AFTER .data;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After updating with the app via DFU, reconnect to RTT view. You will see the log of the application. You might need to adjust the ram size as that post indicate.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/298683?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 12:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d1c3456-55fd-4e6f-ab73-82fd047a44da</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;I am using SDK 15.1.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/298671?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 11:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1016fde2-84af-4e5d-8838-b401eb6abe34</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Rajender,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What SDK version you are using?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/298557?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 06:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23f7ff24-6836-4c28-8273-35bfe0979f75</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am Very sorry for the late replay,&lt;/p&gt;
&lt;p&gt;but i have tried very much to implement same thing in my code as you suggested in the reference link,&lt;/p&gt;
&lt;p&gt;but still i am having compilation errors to implement those steps like adding&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define SEGGER_RTT_SECTION &amp;quot;.rtt&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;so please give me more explanation that where we need to add these steps,(sorry for requesting very basic procedure)&lt;br /&gt;and then i will start testing in my code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Raj.&lt;strong&gt;&lt;code&gt;&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/297842?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 14:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5d62e11-3c9f-444d-b6e6-578b60f36a72</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Rajender,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;nbsp;happens because the bootloader and application have placed the RTT buffer in different sections in RAM and Jlink doesn&amp;#39;t know this. It expects it to stay at the same address. The solution is to configure the linker settings so that both the bootloader and app places the buffer at the same place in RAM. Here is the example&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/297810?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 13:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef23192f-51ea-49d1-a047-565b4760de5e</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Since we are ready to deploy our device at customer end we need solution for this RTT Log issue ASAP&lt;/p&gt;
&lt;p&gt;so we are awaiting for your reply..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Raj.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/297491?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 12:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37777b4f-04b2-41cf-bd35-e230e2180438</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;--&amp;gt; Yes i Enabled NRF_LOG_ENABLED and NRF_LOG_BACKEND_RTT_ENABLED in sdk_config.h and i can see my LOG output in RTT viewer(j-link RTT viewer) when i program my board other than DFU(segger- Build and Run)&lt;/p&gt;
&lt;p&gt;--&amp;gt; just for the clarity i am telling you again that -&amp;nbsp;&lt;strong&gt;my problem is to see log data while application is running after i do DFU,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;That means i have written my NRF_LOG_INFO() in the Application program&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1614773727964v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1614773775364v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;--&amp;gt; Iam using secure_bootloader(ble) as the base not secure_bootloader(ble_debug) for the Bootloader of my Application, (when i was testing the secure bootloader firstly i have tried with secure_bootloader_ble_debug only and it was worked fine with RTT Log data)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rajender.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/297070?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 08:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a1ca72-4a03-4cb5-9dde-44f5fce20d6c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Rajender,&lt;/p&gt;
&lt;p&gt;Do you enable NRF_LOG_ENABLED and NRF_LOG_BACKEND_RTT_ENABLED in the sdk_config.h? You can refer to the sdk_config.h in the _debug project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you use&amp;nbsp;&lt;span&gt;secure_bootloader(ble_debug) as the base? Are you able to use the secure_bootloader(ble_debug) for the test? Could&amp;nbsp;you see the log from RTT viewer while only loading the secure_bootloader(ble_debug)? Does it advertise with the advertising name?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/296969?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 16:26:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80d5aaad-7683-4ba5-82c7-df309c0587a1</guid><dc:creator>umrsraj</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thanks for the replay,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using modified code of ble_app_uart example, Buttonless DFU, and secure_bootloader(ble).&lt;/p&gt;
&lt;p&gt;when i program my Custom board without bootloader(using j-link of DK board) the RTT viewer works fine, but when i program using DFU method(using bootloader) it wont work, i.e., when i try to connect in RTT viewer app the BLE disconnects and program stops working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Best Regards,&lt;/p&gt;
&lt;p&gt;Rajender.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having the RTT viewer after DFU</title><link>https://devzone.nordicsemi.com/thread/296859?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 13:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e899772-6623-4adf-8bd3-d623c0fefa88</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Rajender,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Are you using the bootloader example? If so, there are two types of examples and only the bootloaders with debug version provide the RTT log function.&lt;/p&gt;
&lt;p&gt;May I know which example/code/image are you using?&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>