<?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>How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29854/how-to-fix-uart-behavior-in-segger</link><description>Still playing with my app. Since RTT (or whatever it was, when printf was printing info to segger debug console) was ruining the debug process, I just switched off RTT and disabled uart module.
But now I need some way to print out some debug info.
So</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jan 2018 13:10:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29854/how-to-fix-uart-behavior-in-segger" /><item><title>RE: How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/thread/118669?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 13:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a221a0-030c-4563-a1c4-d94731bc9034</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I would suggest to use our SDK example in SDK v12. Then you can use &lt;a href="https://devzone.nordicsemi.com/blogs/1032/segger-embedded-studio-a-cross-platform-ide/"&gt;this tutorial&lt;/a&gt; to convert a Keil project into SES.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/thread/118668?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 21:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381ef73e-cbc3-4ab7-a804-2d5634545183</guid><dc:creator>puff</dc:creator><description>&lt;p&gt;what&amp;#39;s strange: I can see app_uart_fifo.o among the object files, but I can&amp;#39;t see app_uart.o - why is it so?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/thread/118667?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 20:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf8ee18-63d9-4adc-ad35-1f36e0baf135</guid><dc:creator>puff</dc:creator><description>&lt;p&gt;I am playing with custom characteristic example from github, based on 10028 board, s130 softdevice. I had to import it to segger first.
mdfind NRF_LOG_BACKEND_SERIAL_USES_RTT shows just email notifications from this site, so I am pretty much sure that there is no such a line in any file on my computer. I tried playing with project file several times, each time leadin to a hardfault. (I was editing it in segger text editing window and then I normally clicke reload button when building).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/thread/118666?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 14:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73116c61-fadd-4411-9f89-d9bd31fb08b7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Which example are you testing with ? Could you simply test with any example in the SDK ? ble_app_uart for example.&lt;/p&gt;
&lt;p&gt;Which SDK your application based on ?&lt;/p&gt;
&lt;p&gt;Have you try a full search in your project for NRF_LOG_BACKEND_SERIAL_USES_RTT  ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/thread/118665?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 12:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4af9f60a-4d87-4cb6-920f-52dd9d7cbe4b</guid><dc:creator>puff</dc:creator><description>&lt;p&gt;That&amp;#39;s really nice video! Thank you! Now I see what debug messages are, and what I get in debug console there is definitely not nrf log messages. Speaking of what&amp;#39;s suggested in that video, I can&amp;#39;t find any sdk-config.h files or any occurances of such but for in &lt;code&gt;/components/libraries/mem_manager/mem_manager.c and /components/libraries/mem_manager/mem_manager.h&lt;/code&gt; and in email messages. Moreover, I don&amp;#39;t have that &amp;#39;open in a wizard&amp;#39; menu on my macos version of segger.&lt;/p&gt;
&lt;p&gt;Now I tried using the same aproach to debug what causes it restart, and got the following result:
in debug mode, even without uart_config(), I can see printf messages in segger debug console, everything works fine, it doesn&amp;#39;t reach the breakpoint in app_error file. When in normal run, it works okay even with uart_config, but when I do printf - it hangs.&lt;/p&gt;
&lt;p&gt;There are several build configurations in segger - could it be caused by some mess there? I have public/private, with common and internal in private, and there are some differences between them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/thread/118664?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 12:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11de2e63-a429-4ee4-b8b0-6f56dce86dc7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s just the configuration on Segger embedded Studio, it wouldn&amp;#39;t affect the code of the application. If you want to disable RTT log you need to edit the sdk_config.h.&lt;/p&gt;
&lt;p&gt;There is a GUI tool to edit sdk_config, please have a look at &lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI"&gt;this tutorial&lt;/a&gt;.
NRF_LOG_BACKEND_SERIAL_USES_RTT should be disabled and NRF_LOG_BACKEND_SERIAL_USES_UART should be enabled if you want to send the log via UART.&lt;/p&gt;
&lt;p&gt;To turn off LOGing you change NRF_LOG_ENABLED to 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/thread/118663?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 22:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db2a7f1-8268-4c8e-b450-461e6c387863</guid><dc:creator>puff</dc:creator><description>&lt;p&gt;It&amp;#39;s nRF5_SDK_11.0.0_89a8197. To disable RTT, I did righ-click on my project in the project tree, then Edit Options (for some reason it&amp;#39;s different than when I do Project-Edit Options from the main menu). Debug-Debugger, RTT Enabled - No. However, even without uart_config() and with RTT disabled, I still can see printf to segger console - how could that be?
And that was your example - custom characteristic. It&amp;#39;s not that I need UART - the task is completed, the  project seems to be working just fine (though, I&amp;#39;ll have to look at power consumption and to check if an attacker can drain the battery somehow).
I just got curios, how to track that uart issue. It seems it keeps restarting on uart_config();
all I did I remapped the  CTS pin first to pin0, then to pin7, no effect. By the way, what are the minimum pins needed for uart (i connected just tx pin and ground to my uart-&amp;gt;usb converter)
could it be that what I see in segger debug console is actually the nrf_logs or something different? I just commented out the include  app_uart and uart_config(), and it still recompiles and displays printf - weird.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to fix UART behavior in segger?</title><link>https://devzone.nordicsemi.com/thread/118670?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 15:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00a03121-f608-4106-8c07-b2d6e6a066f2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;please share more information about the SDK version you use. What did you do to disable RTT ? I would suggest you to play with our example in the SDK to make sure you can switch between UART and RTT logging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>