<?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>UART debug logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4593/uart-debug-logging</link><description>Hello, 
 I know that this question has been asked a few times, but I am a little desperate after trying to get debug logging over the Virtual COM Port to work. Here are the steps that I did: 
 
 I got myself a nRF51 USB Dongle (pca10031 board with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 14 Nov 2015 07:45:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4593/uart-debug-logging" /><item><title>RE: UART debug logging</title><link>https://devzone.nordicsemi.com/thread/16273?ContentTypeID=1</link><pubDate>Sat, 14 Nov 2015 07:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80d1b9f3-2edd-40b7-bace-6dd2b4f1bf5e</guid><dc:creator>hawk</dc:creator><description>&lt;p&gt;hi, all:
the code of SDK9.0, simple uart example and app_trace_init/ app_trace_log  are the same after i check  the code. why  i get error message log,  please  add some time delay in the loop. ererything is  OK.  ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART debug logging</title><link>https://devzone.nordicsemi.com/thread/16272?ContentTypeID=1</link><pubDate>Sat, 14 Nov 2015 03:42:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca43bf2-bf38-41bf-a648-27d693351949</guid><dc:creator>hawk</dc:creator><description>&lt;p&gt;hi,stian:&lt;/p&gt;
&lt;p&gt;when i test uart simple example, all is OK..  but when i test using app_trace_init() and app_trace_log(), i has the same question..  I can only get garbage characters...&lt;/p&gt;
&lt;p&gt;int main(void)
{&lt;/p&gt;
&lt;p&gt;app_trace_init();&lt;/p&gt;
&lt;p&gt;while (1) {&lt;/p&gt;
&lt;p&gt;app_trace_log(&amp;quot;a==B++\r\n&amp;quot;);
}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;but the log messages are: +B=aaB==a+==a&lt;/p&gt;
&lt;p&gt;configuration: pca10028, APP_UART_FLOW_CONTROL_DISABLE, 38400,
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/-2015_2D00_11_2D00_14-11.50.55.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;and I change to use app_uart_fifo.c  for app_uart.
and test again, the following is the result:&lt;/p&gt;
&lt;h1&gt;the log messages are:&lt;/h1&gt;
&lt;p&gt;Ba+=+=
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/-2015_2D00_11_2D00_14-12.27.56.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART debug logging</title><link>https://devzone.nordicsemi.com/thread/16271?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2015 12:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:897ba48e-82c6-44dc-9047-067ac9adab4e</guid><dc:creator>Shubham Kumar Mishra</dc:creator><description>&lt;p&gt;As I want to debug using Hyperterminal But always got garbage values......
I also tried 9600 Baud rate and it executed few values well than after again started with garbage values.
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPppppppppppppp1PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP this is something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART debug logging</title><link>https://devzone.nordicsemi.com/thread/16270?ContentTypeID=1</link><pubDate>Fri, 28 Nov 2014 13:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1bc0bfc-8f9a-4ff2-aa05-cc011333df69</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thanks a lot. I managed to get UART working by building upon the simple_uart driver. I had a modified example, maybe that was the Problem. I managed to get another sample working by using 19200 baud rate and most of the time, RTS/CTS works for me. Most of the time, it boils down to searching in the code for the places where the UART interface is started.
I am only starting the development and I have a hard time finding the right documentation. Most of the time it&amp;#39;s somewhere, but I cannot find it :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART debug logging</title><link>https://devzone.nordicsemi.com/thread/16269?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2014 08:15:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d13b71e7-d4b2-4043-b69f-aa958551d38f</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Looks like app_trace_init() sets the baud rate to 115200 by default. But notice the &lt;code&gt;#ifdef ENABLE_DEBUG_LOG_SUPPORT&lt;/code&gt; in this file. You should define this under the &amp;quot;C/C++&amp;quot; fan in options.&lt;/p&gt;
&lt;p&gt;I could get it to work with the &lt;code&gt;ble_app_hrs_c_s120_pca10031&lt;/code&gt; example. My settings were:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Putty&lt;/li&gt;
&lt;li&gt;115200&lt;/li&gt;
&lt;li&gt;8 data bits&lt;/li&gt;
&lt;li&gt;1 stop bit&lt;/li&gt;
&lt;li&gt;No parity&lt;/li&gt;
&lt;li&gt;xon/xoff flow control&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Did you try with an example without modifying it? Which SDK are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>