<?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>what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79140/what-are-the-required-steps-files-definitions-commands-to-get-rtt-output-from-a-custom-app-into-rtt-viewer</link><description>I am using an nRF chip and the nRF SDK for 1st time and I think I am still at the steep part of the learning curve. 
 My problem is that I cannot get the log from my custom app in RTT Viewer. I use: 
 
 custom PCB with Taiyo Yuden EYSKBNZWB/nRF52840 Wireless</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Sep 2021 08:10:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79140/what-are-the-required-steps-files-definitions-commands-to-get-rtt-output-from-a-custom-app-into-rtt-viewer" /><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/330407?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 08:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67128dd1-73bd-4f97-8a74-606f5c60f713</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad to hear that. What you can do is to &amp;quot;verify&amp;quot; the reply solving your issue so people with a similar issue in the future to find the solution faster. &lt;a href="https://devzone.nordicsemi.com/members/mrono"&gt;mrono&lt;/a&gt; Thank you for a great suggestion as well!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/330267?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 11:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68dce396-93e3-4c51-bebb-e77ee60d8507</guid><dc:creator>boko</dc:creator><description>&lt;p&gt;Wow, thanks for the suggestion, &lt;a href="https://devzone.nordicsemi.com/members/mrono"&gt;mrono&lt;/a&gt; !&lt;/p&gt;
&lt;p&gt;Just tried it out, and it works :-)&lt;/p&gt;
&lt;p&gt;Only 1 thing to add: issuing only &lt;strong&gt;&amp;quot;R&amp;quot; &lt;/strong&gt;(for reset) in my case only halts the program (I waited for a while :-). In order to get the output in RTTViewer displayed again, I had to run a &lt;strong&gt;&amp;quot;Go&amp;quot;&lt;/strong&gt; command (CPU starts again):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;...
Cortex-M4 identified.
J-Link&amp;gt;R
Reset delay: 0 ms
Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
J-Link&amp;gt;Go
J-Link&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/330249?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 11:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12cfc8b5-e8fd-481b-ae62-9de43f713e91</guid><dc:creator>boko</dc:creator><description>&lt;p&gt;Hi, Simon,&lt;/p&gt;
&lt;p&gt;I think now all the parts of the problem are clarified :-)&lt;/p&gt;
&lt;p&gt;Thanks a lot for the clear explanation !&lt;/p&gt;
&lt;p&gt;I now miss the Facebook &amp;quot;Heart&amp;quot; reaction to reply to your support from the beginning of the ticket :-)&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Mario&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/330236?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 10:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2db44fc-8e52-47ea-bfd6-56458fa29ae3</guid><dc:creator>mrono</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/79140/what-are-the-required-steps-files-definitions-commands-to-get-rtt-output-from-a-custom-app-into-rtt-viewer/330223#330223"]the RTT viewer is disconnected when you do the nrfjprog reset and thus you don&amp;#39;t see any further logging information[/quote]
&lt;p&gt;Yes, this is unfortunately true. However, Segger&amp;#39;s J-Link Commander can issue a reset without disconnecting the RTT viewer.&lt;/p&gt;
&lt;p&gt;So instead of running nrfjprog in a terminal, open J-Link commander and issue a reset there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/330223?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 10:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:665e3077-9fda-4343-a1c2-16aa517e4f24</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, glad to hear we&amp;#39;ve resolved one part of the problem then!&lt;/p&gt;
&lt;p&gt;Okay, seeing as you&amp;#39;re using nrfjprog to do the reset that makes sense. nrfjprog halts the CPU to hijack the debug/trace module and thus disconnect the RTT viewer from the J-Link device. Unfortunately, the RTT viewer does not have the feature that some serial terminals do (like teraterm for instance) where it is able to detect when the COM port is available again and automatically reconnect.&lt;/p&gt;
&lt;p&gt;You will either need to do logging over UART (serial) with a terminal that has this feature, or reset the device in your application, either by a button reset or a timeout that resets the device to be able to see the logging behave correctly. It seems like your application runs as intended, but that the RTT viewer is disconnected when you do the nrfjprog reset and thus you don&amp;#39;t see any further logging information.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/330010?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b44ab4ed-990a-461a-98bf-b939a88c833a</guid><dc:creator>boko</dc:creator><description>&lt;p&gt;Hi, Simon,&lt;/p&gt;
&lt;p&gt;thank you for your reply ! It was exactly what I wanted to know and it answers perfectly my original question :-)&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/79140/what-are-the-required-steps-files-definitions-commands-to-get-rtt-output-from-a-custom-app-into-rtt-viewer/329135#329135"]You&amp;#39;ll also have to add the nrf_log_backend_rtt.h/.c and SEGGER_RTT.h/ .c files to the project.[/quote]
&lt;p&gt;I think what I was missing and not knowing about was the SEGGER part, because I didn&amp;#39;t encounter them when I read about the Logger module in the infocenter, and also because I hadn&amp;#39;t seen SEGGER files in the Makefile of the template_project, which I originally started with and used for testing. Many thanks for mentioning them and copying the corresponding required #defines in the sdk_config.h file !&lt;/p&gt;
&lt;p&gt;In the meantime I read through the SAADC example too, and I think it helped me get the big picture to a decent extent regarding the use / inclusion of modules :-)&lt;/p&gt;
&lt;p&gt;That apart, I couldn&amp;#39;t solve my issue with the lack of output after reset :-(&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/79140/what-are-the-required-steps-files-definitions-commands-to-get-rtt-output-from-a-custom-app-into-rtt-viewer/329135#329135"]How exactly do you reset your device on your end?[/quote]
&lt;p&gt;I used the reset command I found in the Makefile under the &amp;quot;flash&amp;quot; recipe, i.e I ran in a Terminal:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrfjprog -f nrf52 --reset&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Could this influence the RTT logging ?&lt;/p&gt;
&lt;p&gt;Thanks once again&lt;/p&gt;
&lt;p&gt;Mario&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/329135?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 06:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0e1ed4-891a-4d97-a9e6-43ed3aa00d60</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;I just ran the temperature project on my end to see if I could replicate it, and I see the &amp;quot;Temperature example started&amp;quot; message every time I press the reset pin on my DK. How exactly do you reset your device on your end?&lt;/p&gt;
&lt;p&gt;What&amp;#39;s necessary to enable the RTT backend on any example should be adding the following defines in sdk_config.h&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; NRF_LOG_ENABLED - nrf_log - Logger
//==========================================================
#ifndef NRF_LOG_ENABLED
#define NRF_LOG_ENABLED 1
#endif

// &amp;lt;h&amp;gt; nRF_Log 

//==========================================================
// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
//==========================================================
#ifndef NRF_LOG_BACKEND_RTT_ENABLED
#define NRF_LOG_BACKEND_RTT_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings. 
// &amp;lt;i&amp;gt; Size of the buffer is a trade-off between RAM usage and processing.
// &amp;lt;i&amp;gt; if buffer is smaller then strings will often be fragmented.
// &amp;lt;i&amp;gt; It is recommended to use size which will fit typical log and only the
// &amp;lt;i&amp;gt; longer one will be fragmented.

#ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE
#define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS - Period before retrying writing to RTT 
#ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS
#define NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS 1
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_RTT_TX_RETRY_CNT - Writing to RTT retries. 
// &amp;lt;i&amp;gt; If RTT fails to accept any new data after retries
// &amp;lt;i&amp;gt; module assumes that host is not active and on next
// &amp;lt;i&amp;gt; request it will perform only one write attempt.
// &amp;lt;i&amp;gt; On successful writing, module assumes that host is active
// &amp;lt;i&amp;gt; and scheme with retry is applied again.

#ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_CNT
#define NRF_LOG_BACKEND_RTT_TX_RETRY_CNT 3
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;h&amp;gt; nRF_Segger_RTT 

//==========================================================
// &amp;lt;h&amp;gt; segger_rtt - SEGGER RTT

//==========================================================
// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer. 
// &amp;lt;i&amp;gt; Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE
// &amp;lt;i&amp;gt; or this value is actually used. It depends on which one is bigger.

#ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 512
#endif

// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Maximum number of upstream buffers. 
#ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS
#define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2
#endif

// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of downstream buffer. 
#ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
#endif

// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Maximum number of downstream buffers. 
#ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS
#define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2
#endif

// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_DEFAULT_MODE  - RTT behavior if the buffer is full.
 

// &amp;lt;i&amp;gt; The following modes are supported:
// &amp;lt;i&amp;gt; - SKIP  - Do not block, output nothing.
// &amp;lt;i&amp;gt; - TRIM  - Do not block, output as much as fits.
// &amp;lt;i&amp;gt; - BLOCK - Wait until there is space in the buffer.
// &amp;lt;0=&amp;gt; SKIP 
// &amp;lt;1=&amp;gt; TRIM 
// &amp;lt;2=&amp;gt; BLOCK_IF_FIFO_FULL 

#ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE
#define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll also have to add the nrf_log_backend_rtt.h/.c and SEGGER_RTT.h/ .c files to the project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/328957?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 08:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7145da0-d301-4558-8e0b-6bbc79312092</guid><dc:creator>boko</dc:creator><description>&lt;p&gt;Hi, Simon,&lt;/p&gt;
&lt;p&gt;thanks for your reply and suggestion !&lt;/p&gt;
&lt;p&gt;Just built and flashed the&lt;strong&gt; temperature project&lt;/strong&gt;, with a semi-successful result :-)&lt;/p&gt;
&lt;p&gt;The code I used is (I commented out the temperature part and left only the first log output statement with an LED switch-on after it):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// #includes ...
// #defines ...

int main ( void ) {
    nrf_gpio_cfg_output ( LED_PIN ) ;
    
    APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
    NRF_LOG_DEFAULT_BACKENDS_INIT();
    NRF_LOG_INFO(&amp;quot;Temperature example started.&amp;quot;);
    
    nrf_gpio_pin_set ( LED_PIN );
}&lt;/pre&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;The results are as follows:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="background-color:#ffffff;font-size:small;"&gt;&lt;span style="background:#81d41a;"&gt;Setting 1 (sdk_config.h):&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#000000;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background:transparent;"&gt;&lt;strong&gt;NRF_LOG_BACKEND_UART_ENABLED&lt;/strong&gt; 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#000000;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background:transparent;"&gt;&lt;strong&gt;NRF_LOG_BACKEND_RTT_ENABLED&lt;/strong&gt; 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#d4d4d4;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;1 or 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#d4d4d4;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;b&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;NRF_LOG_ENABLED&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt; 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#d4d4d4;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background:#1e1e1e;"&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;b&gt;&lt;span style="background:#ff4000;"&gt;NRF_LOG_DEFERRED&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background:#ff4000;"&gt; 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="background-color:#ffffff;font-size:small;"&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background:transparent;"&gt;&lt;strong&gt;No output in RTT Viewer !&lt;/strong&gt; --&amp;gt; from what I could read, this can be explained by the fact that I don&amp;#39;t have a call to&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;NRF_LOG_PROCESS() in my code, hence I don&amp;#39;t see the output. This is understandable.&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="background-color:#ffffff;font-size:small;"&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background:transparent;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="background-color:#ffffff;font-size:small;"&gt;&lt;span style="background:#81d41a;"&gt;Setting 2 (sdk_config.h):&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#000000;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;&lt;strong&gt;NRF_LOG_BACKEND_UART_ENABLED&lt;/strong&gt; 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#000000;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;&lt;strong&gt;NRF_LOG_BACKEND_RTT_ENABLED&lt;/strong&gt; 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#d4d4d4;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;1 or 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#d4d4d4;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;b&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;NRF_LOG_ENABLED&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt; 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#d4d4d4;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background:#1e1e1e;"&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;b&gt;&lt;span style="background:#8e86ae;"&gt;NRF_LOG_DEFERRED&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background:#8e86ae;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background:#8e86ae;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="background-color:#ffffff;font-size:small;"&gt;&lt;span style="background:transparent;"&gt;&lt;span style="font-weight:normal;"&gt;Output&lt;/span&gt; in RTT Viewer is shown, but &lt;strong&gt;only&lt;/strong&gt; the 1&lt;sup&gt;st&lt;/sup&gt; time after a connection is established !&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="background-color:#ffffff;color:#000000;font-family:arial, helvetica, sans-serif;font-size:small;"&gt;&lt;span&gt;&lt;span style="background-attachment:scroll;background-image:none;background-position:0% 0%;background-repeat:repeat;background-size:auto;"&gt;However, no output is shown if the program is for example reset via &amp;ldquo;&lt;b&gt;nrfjprog -f nrf52 &amp;ndash;reset&lt;/b&gt;&amp;rdquo; with a running RTT Viewer connection !&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;For the output to be shown again, the connection in RTT Viewer must be first &lt;b&gt;disconnected&lt;/b&gt;, and then &lt;b&gt;re-established &lt;/b&gt;AFTER the chip has been previously reset, e.g.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;chip reset&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;(Connection lost) via &lt;b&gt;File &amp;rarr; Disconnect&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;b&gt;&lt;span style="background:transparent;"&gt;File &amp;rarr; Connect&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;00&amp;gt; &amp;lt;info&amp;gt; app: &lt;span style="background:#ffff00;"&gt;Temperature example started.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;00&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;i.e. output is shown when:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;chip is reset&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;RTT Viewer is disconnected&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="background:transparent;"&gt;RTT Viewer is re-connected anew&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="background-color:#ffffff;font-size:small;"&gt;&lt;span style="background:transparent;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;Modifying&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#2a6099;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class="western"&gt;&lt;span&gt;&lt;span&gt;&lt;b&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class="western"&gt;&lt;span&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class="western"&gt;&lt;span&gt;&lt;span&gt;as
described in:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#2a6099;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:#b4c7dc;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="background:transparent;"&gt;Link&lt;/span&gt;&lt;/span&gt;&lt;span style="background:transparent;"&gt;: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46685/no-log-output-to-debug-terminal-in-ses-or-rtt-viewer"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/46685/no-log-output-to-debug-terminal-in-ses-or-rtt-viewer&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:#ff4000;"&gt;does not change the situation !&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;The only difference is the number of output lines being output in RTT Viewer, i.e.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#2a6099;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;b&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#2a6099;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#2a6099;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;00&amp;gt;
&amp;lt;info&amp;gt; app: Temperature example started.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#2a6099;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;b&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#2a6099;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#2a6099;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;00&amp;gt;
&amp;lt;info&amp;gt; app: Temperature example started.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#2a6099;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;&lt;code class="western"&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background:#ff4000;"&gt;00&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-weight:normal;line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="background:transparent;"&gt;&lt;code class="western"&gt;=&amp;gt;
in the 2&lt;/code&gt;&lt;code class="western"&gt;&lt;sup&gt;nd&lt;/sup&gt;&lt;/code&gt;&lt;code class="western"&gt;
case two lines are printed as output, whereas in the 1&lt;/code&gt;&lt;code class="western"&gt;&lt;sup&gt;st&lt;/sup&gt;&lt;/code&gt;&lt;code class="western"&gt;
case only 1 line is printed as output !&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="background-color:#ffffff;font-size:small;"&gt;&lt;span style="font-weight:normal;"&gt;&lt;span style="background:transparent;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;Do you know what is the reason for this behavior and what needs to be done to solve it ?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;This apart, could you elaborate on:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;[quote userid="75734" url="~/f/nordic-q-a/79140/what-are-the-required-steps-files-definitions-commands-to-get-rtt-output-from-a-custom-app-into-rtt-viewer/328821#328821"]actually implement the RTT backend[/quote]
&lt;p&gt;What does it exactly mean to implement the RTT backend ? Could you point me to a resource where all the required steps are described in terms of required headers / sources / Makefile settings / sdk_config.h settings, or alternatively just type them here in as the logging functionality is so fundamental ?&lt;/p&gt;
&lt;p&gt;Greets and thanks again&lt;/p&gt;
&lt;p&gt;Mario&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/328821?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 12:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1763b40-5b64-4fc8-b025-5d204eca75dd</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Thank you for the thorough answer again. I don&amp;#39;t really see any reason that you shouldn&amp;#39;t be able to get these messages in the RTT viewer here.&lt;/p&gt;
&lt;p&gt;Since yesterday however, I&amp;#39;ve noticed that the template project doesn&amp;#39;t actually implement the RTT backend, so I might be missing a step. What you could do is to try building and running an example that does, like the peripheral/temperature example for instance. Just make sure to set&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;NRF_LOG_BACKEND_UART_ENABLED&lt;/strong&gt; to 0 and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;NRF_LOG_BACKEND_RTT_ENABLED&lt;/strong&gt; to 1 in the sdk_config.h file. If you still don&amp;#39;t see anything in the RTT viewer, try to switch the &lt;strong&gt;CR_ON_LF_ENABLED&lt;/strong&gt; define to 0 in sdk_config.h as well.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Simon&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/328605?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 12:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b75ed18-6cc3-4d4f-9c87-7425928429a5</guid><dc:creator>boko</dc:creator><description>&lt;p&gt;Hi, Simon,&lt;/p&gt;
&lt;p&gt;no issue about the delay, thanks for your new reply.&lt;/p&gt;
&lt;p&gt;In the meantime, I somehow managed to get the Debugging in VSCode running via OpenOCD. So, with regard to your last question from your previous reply:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Are you positive that the application runs as intended and actually enters this for loop printing values for you?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I removed the printing loop, and only inserted few NRF_LOG_INFO() lines before switching on an indicator LED to make sure the execution reaches there:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// #includes ...
// #defines ...

int main ( void ) {
    nrf_gpio_cfg_output ( LED_PIN ) ;
    
    ret_code_t err_code = NRF_LOG_INIT ( NULL );
    APP_ERROR_CHECK ( err_code );
    
    NRF_LOG_DEFAULT_BACKENDS_INIT ();
    
    NRF_LOG_INFO ( &amp;quot;1r\n&amp;quot; );
    NRF_LOG_INFO ( &amp;quot;2\r\n&amp;quot; );
    NRF_LOG_INFO ( &amp;quot;3\r\n&amp;quot; );
    NRF_LOG_INFO ( &amp;quot;4\r\n&amp;quot; );
    NRF_LOG_INFO ( &amp;quot;5\r\n&amp;quot; );
    
    nrf_gpio_pin_set ( LED_PIN );   // LED switches on =&amp;gt; execution reaches this line ?
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;LED switches on =&amp;gt; execution does not break before it. I also stepped the code through in a Debugging session and could step over each NRF_LOG_INFO() call and then finally reached the LED-switch-on code. So, I assume the NRF_LOG_INFO() calls get executed, however no numbers get printed in the RTT Viewer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also tried using the &lt;code&gt;JLinkExe&lt;/code&gt; together with &lt;code&gt;JLinkRTTClient&lt;/code&gt; as described in here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.justinmklam.com/posts/2019/04/vscode-nrf52/"&gt;https://www.justinmklam.com/posts/2019/04/vscode-nrf52/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but still nothing gets printed as with JLinkRTTViewer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With regard to the connection PCB &amp;lt;--&amp;gt; J-Link, from what I could measure with the multi-meter and by visually inspecting which cable goes where (not everything is visible under the silicon or epoxy or whatever has been applied there + I am kind of only firmware guy with basic hardware skills :-), it must be something like:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://imgur.com/L7qi8Oa"&gt;https://imgur.com/L7qi8Oa&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Is there a reason you&amp;#39;ve chosen this example project?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Well, currently I have no dev board to experiment with, but only an example device. So, my tasks were:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;1st task: make an LED blink (done);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;2nd task: get the logs working via RTT (stuck);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;3rd task: get readings from the device joystick and get those printed.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;So, I am stuck on the 2nd task :-) hence, I can&amp;#39;t continue the plan :-(. I received the whole project, and probably by running it I might get RTT output, but if I get it, then I still won&amp;#39;t have understood what is going on and required for RTT to work, which I find kind of annoying, because later it might lead to some bug when I do something else. So, the reason to use the very basic template project was just to get started clean, and add functionalities one-by-one when all has worked as expected - I think that is the more decent approach to getting to know something new, as is an nRF52 to me at the present moment.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will try the UART example as you suggest, but I will be happy to resolve my issue and understand also why it doesn&amp;#39;t work and what exactly was missing and required for it to work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Greets&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mario&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/328328?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 08:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1fc2f39-ffe3-4c64-86ef-fba9ee5670f9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the late reply. I&amp;#39;ve been out of office the past few days.&lt;/p&gt;
&lt;p&gt;Can you also explain how the module is connected to the debugging device?&lt;/p&gt;
&lt;p&gt;Indeed, the template project is very basic in regards to what is already added to it. Is there a reason you&amp;#39;ve chosen this example project? We generally recommend starting out with a larger project that&amp;#39;s already implemented some of the features you&amp;#39;d already like to use. The peripheral_uart example for instance, uses the RTT backend for logging by default, so you could use that from scratch instead if that&amp;#39;s of interest.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/327657?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 14:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9282c0c6-0615-4252-911c-d469be3664f7</guid><dc:creator>boko</dc:creator><description>&lt;p&gt;&lt;em&gt;How is the connection to the J-Link set up in the RTT Viewer?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;- when I run the JLinkRTTViewer from the Terminal I use the following settings (tried also once with the S/N, but same issue, didn&amp;#39;t expect to make any difference :-) :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://i.imgur.com/fDE7as7.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- when I press OK, I get the following output:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://i.imgur.com/z6HKXiK.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;in your sdk_config.h file, please make sure that the #define NRF_LOG_BACKEND_UART_ENABLED is set to 0.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I do not have this macro name in my sdk_config.h file ! I read about it in several other posts, but it&amp;#39;s just not present.&lt;/p&gt;
&lt;p&gt;I am talking about the sdk_config.h file located in /template_project/pca10056/blank/config/sdk_config.h&lt;/p&gt;
&lt;p&gt;There are some UART macros which, from the color codes in VScode, I guess are not supposed to be conditionally-compiled, e.g.:&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;e&amp;gt; NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;//==========================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#ifndef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;NRFX_UART_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; NRFX_UART_ENABLED &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;o&amp;gt; NRFX_UART0_ENABLED - Enable UART0 instance &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#ifndef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;NRFX_UART0_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; NRFX_UART0_ENABLED &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;and there some others that, from the the color codes in VSCode again, are to be conditionally-compiled, e.g.&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;e&amp;gt; UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver - legacy layer&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;//==========================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#ifndef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; UART_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART_ENABLED&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;or this one&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;e&amp;gt; UART0_ENABLED - Enable UART0 instance&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;//==========================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#ifndef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; UART0_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART0_ENABLED&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;or this one&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;e&amp;gt; UART1_ENABLED - Enable UART1 instance&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;//==========================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#ifndef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; UART1_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART1_ENABLED&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;/e&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;or this one&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;e&amp;gt; APP_UART_ENABLED - app_uart - UART driver&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;//==========================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#ifndef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; APP_UART_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;APP_UART_ENABLED&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;or these ones&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;e&amp;gt; UART_CONFIG_LOG_ENABLED - Enables logging in the module.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;//==========================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#ifndef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; UART_CONFIG_LOG_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART_CONFIG_LOG_ENABLED&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;o&amp;gt; UART_CONFIG_LOG_LEVEL - Default Severity level&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;0=&amp;gt; Off &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;1=&amp;gt; Error &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;2=&amp;gt; Warning &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;3=&amp;gt; Info &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;// &amp;lt;4=&amp;gt; Debug &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#ifndef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; UART_CONFIG_LOG_LEVEL&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;UART_CONFIG_LOG_LEVEL&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;3&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;So, I do not have &lt;em&gt;NRF_LOG_BACKEND_UART_ENABLED &lt;/em&gt;in&lt;em&gt; &lt;/em&gt;my sdk_config.h file, but I do have some others whose states are variably either 1 or 0, but I do not know if any of those is meant to exactly correspond to the one you mentioned, i.e &lt;em&gt;NRF_LOG_BACKEND_UART_ENABLED&lt;/em&gt;. So, my next question would be if one of those is a substitute for the one you mentioned, or &lt;em&gt;NRF_LOG_BACKEND_UART_ENABLED&lt;/em&gt; is just somehow missing in the sdk_config.h file for the template project ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;try to set the&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED&amp;nbsp;define back to 1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I just tried --&amp;gt; no change in the situation :-(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The other thing as feedback: when I flash the program and RTT Viewer is not yet open, the J-Link LED looks as if it is in its heart beat mode. When I then open the RTT Viewer, the J-Link LED starts blinking quite fast, I guess it&amp;#39;s the flickering mode, e.g. executing something ?! is it possible that some communication is going on, but I don&amp;#39;t see the output ? When I then close the RTT Viewer, the J-Link LED shows steady light for ca. 7 seconds, then I guess its heart beat mode is initiated (as described in the User Manual for J-Link).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Are you positive that the application runs as intended and actually enters this for loop printing values for you?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No, I am not. To be honest I don&amp;#39;t know how to make this sure. I am also currently trying to set up the debug configuration in VSCode using the launch.json file, but I have a problem there too, i.e.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Checking target voltage...&lt;br /&gt;Target voltage: 3.30 V&lt;br /&gt;Listening on TCP/IP port 50000&lt;br /&gt;Connecting to target...&lt;br /&gt;Connected to target&lt;br /&gt;&lt;strong&gt;Waiting for GDB connection...Restoring target state and closing J-Link connection...&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Shutting down...&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;SERVER CONSOLE DEBUG: onBackendConnect: gdb-server program closed&lt;/strong&gt;&lt;br /&gt;GDB server exited. Waiting for next server to start...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but I guess I&amp;#39;ll need to open another ticket for this issue ...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what are the required steps/files/definitions/commands to get RTT output from a custom app into RTT Viewer ?</title><link>https://devzone.nordicsemi.com/thread/327581?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 11:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebf0b8ea-027f-4a88-afc3-9a72de19b5d2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How is the connection to the J-Link set up in the RTT Viewer?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1630495795754v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also, in your sdk_config.h file, please make sure that the #define NRF_LOG_BACKEND_UART_ENABLED is set to 0. You can also try to set the&amp;nbsp;&lt;span&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED&amp;nbsp;define back to 1 to see if that helps as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you positive that the application runs as intended and actually enters this for loop printing values for you?&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;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>