<?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 &amp;amp; RTT disable sdk 12/13 nRF52832/nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23566/rtt-rtt-disable-sdk-12-13-nrf52832-nrf52840</link><description>Dear all, 
 Help please,
I&amp;#39;m evaluating ble_app_uart (Central/Peripheral) but I don&amp;#39;t understand how to disable the echo I have on the RTT USB VCP 
 When I send data from the UART, I got (PCA10056/10040) the data in both on the RTT USB VCP and on the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jul 2017 10:20:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23566/rtt-rtt-disable-sdk-12-13-nrf52832-nrf52840" /><item><title>RE: RTT &amp; RTT disable sdk 12/13 nRF52832/nRF52840</title><link>https://devzone.nordicsemi.com/thread/92572?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 10:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:905b319c-40c1-477b-959d-f7cde932afa1</guid><dc:creator>ble999</dc:creator><description>&lt;p&gt;Dear Peter,&lt;/p&gt;
&lt;p&gt;Sorry about the delay to reply you, holidays.
So I still have the problem, I tested with your suggestions:
NRF_LOG_BACKEND_SERIAL_USES_RTT = 1
NRF_LOG_BACKEND_SERIAL_USES_UART=0
The TTY host software on an USB only&lt;/p&gt;
&lt;p&gt;// using ble_app_uart_c for example
main()
{
timer_init();
uart_init():
....
printf(&amp;quot;\r\nHello world - printf()&amp;quot;); 	
NRF_LOG_INFO(&amp;quot;\r\nHello world - log()&amp;quot;);
....
}&lt;/p&gt;
&lt;p&gt;I got the following (only) on the TTY:
&lt;strong&gt;Hello world - printf()&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I expected to don&amp;#39;t have the **...printf()...&amp;quot; on the RTT.
Perhaps a retarget() default initialization?&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;p&gt;Comment:
I got the same output with:
NRF_LOG_BACKEND_SERIAL_USES_RTT = 0
NRF_LOG_BACKEND_SERIAL_USES_UART=0&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT &amp; RTT disable sdk 12/13 nRF52832/nRF52840</title><link>https://devzone.nordicsemi.com/thread/92577?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2017 12:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb1139f0-e4b3-464a-9b6b-01a4b2be1efd</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why would you set NRF_LOG_BACKEND_SERIAL_USES_RTT = 0? It should be 1. And NRF_LOG_BACKEND_SERIAL_USES_UART=0. Actually the ble_app_uart example should work like that out of the box. NRF_LOG_INFO() should appear on RTT and printf should appear on UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT &amp; RTT disable sdk 12/13 nRF52832/nRF52840</title><link>https://devzone.nordicsemi.com/thread/92576?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 14:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a5d4a88-1aa7-4570-9828-fa70cc650ea2</guid><dc:creator>ble999</dc:creator><description>&lt;p&gt;Peter,
I re-do the test using SDK 13.0.7ca7556 with the ble_peripheral\pca10056_s140&lt;/p&gt;
&lt;p&gt;the only modification I did was:
NRF_LOG_BACKEND_SERIAL_USES_RTT=0
and adding in the main():
printf(&amp;quot;Hello word -printf&amp;quot;);
NRF_LOG_RAW_INFO(&amp;quot;Hello word -NRF_LOG&amp;quot;);&lt;/p&gt;
&lt;p&gt;Results:
PuTTY USB/RS232:
Hello word - printf
PuTTY UART:
Hello word - printf&lt;/p&gt;
&lt;p&gt;(the Hello word -NRF_LOG didn&amp;#39;t output)&lt;/p&gt;
&lt;p&gt;I expected to have only the ouput on PuTTY UART and nothing on the PuTTY USB/VCP&lt;/p&gt;
&lt;p&gt;Sorry about my previous text mistake&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT &amp; RTT disable sdk 12/13 nRF52832/nRF52840</title><link>https://devzone.nordicsemi.com/thread/92574?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 13:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e8c756b-fac0-4c27-8b4b-013ccb28e743</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Strange. Seems to be working fine here. Have you made any other changes to the project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT &amp; RTT disable sdk 12/13 nRF52832/nRF52840</title><link>https://devzone.nordicsemi.com/thread/92575?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 13:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da13ff18-4d89-4d20-87b6-5ce71f6b6c44</guid><dc:creator>ble999</dc:creator><description>&lt;p&gt;Yes, I tried your setting and I got the following:&lt;/p&gt;
&lt;p&gt;NRF_LOG_INFO(&amp;quot;Hello word NRF LOG&amp;quot;) =&amp;gt; nothing on the both two PuTTY (USB/VCP &amp;amp; UART)&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;Hello word printf&amp;quot;) =&amp;gt; I got the &amp;quot;Hello word printf&amp;quot; on both the two PuTTY (USB/VCP &amp;amp; UART)&lt;/p&gt;
&lt;p&gt;I excepted to have:
&amp;quot;Hello word NRF LOG&amp;quot; on PuTTY USB/VCP
&amp;quot;Hello word printf&amp;quot; on PuTTY UART&lt;/p&gt;
&lt;p&gt;Thanks for you fast reply Petter&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT &amp; RTT disable sdk 12/13 nRF52832/nRF52840</title><link>https://devzone.nordicsemi.com/thread/92573?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 12:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ab4e8ae-e1d7-47b8-999e-f18e0da5999a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;NRF_LOG_ENABLED=1, NRF_LOG_BACKEND_SERIAL_USES_UART=0, NRF_LOG_BACKEND_SERIAL_USES_RTT=1 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>