<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/193/uart</link><description>Hi, 
 is there any Example to use the UART ?
I need an monitor while the application is running, is the UART COM Port the right one for this? 
 Is there an example with the app_uart? 
 Best regards Nils</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Aug 2013 03:58:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/193/uart" /><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1074?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2013 03:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82526547-56fb-489b-bb8b-b2565b02ec3f</guid><dc:creator>Philip Freidin</dc:creator><description>&lt;p&gt;Check that the library you are linking to includes floating point support. Make sure text_buffer is big enough. Use the debugger, try tests with simple thing like this: sprintf(text_buffer, &amp;quot;%6.3f&amp;quot;, (float)12.345);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1075?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2013 00:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ca3fd4d-2d98-430a-a6be-b5ab73ba66c9</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;@Philip,
I tried using sprintf().
I confirmed that no problem about int type.
but, the float type of the %f don&amp;#39;t be seen on screen.
How can I solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1073?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2013 00:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abc568de-6588-4722-bd7a-86bb752f5218</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;@Philip,
I tried using sprintf().
I confirmed that no problem about int type.
but, the float type of the %f don&amp;#39;t be seen on screen.
How can I solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1069?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2013 18:00:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf0f540-3802-4559-adf8-96efa44c31b6</guid><dc:creator>Nils Minor</dc:creator><description>&lt;p&gt;Yes the way Yalcin told you is the right way. You have to comment the #define out. If it does not work i can send you my code tomorrow.&lt;/p&gt;
&lt;p&gt;Nils&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1072?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2013 14:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c26c6e3-f2ab-4038-8940-16be4a42ccea</guid><dc:creator>Yalcin Akdogan</dc:creator><description>&lt;p&gt;Thanks Philip.
Yalcin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1071?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2013 14:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c463b8c5-b063-4895-80d3-ba6a6c524f12</guid><dc:creator>Philip Freidin</dc:creator><description>&lt;p&gt;@Yalcim , connecting to printf is fairly well explained in the
Keil documentation, but I don&amp;#39;t know how to do it for GCC.&lt;/p&gt;
&lt;p&gt;Although not a perfect solution, if you have simple_uart_putstring()
working, then you can do this:&lt;/p&gt;
&lt;p&gt;[b]    uint8_t    text_buffer[128];&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sprintf( text_buffer, &amp;quot;Formatted answer  %8d   %8.3f\n\r&amp;quot;,
                        intvar,  floatvar);

simple_uart_putstring( text_buffer );[/b]
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1062?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 13:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36ac9740-dcb5-45c4-96ff-70feea4acb80</guid><dc:creator>Marc Nicholas</dc:creator><description>&lt;p&gt;You just need to add simple_uart.c to your project and include simple_uart.h headers.&lt;/p&gt;
&lt;p&gt;I generally use:&lt;/p&gt;
&lt;p&gt;simple_uart_putstring(&amp;quot;Some text\r\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;To send my debugging output.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using the nRF51822-EK, configure the onboard USB UART with:&lt;/p&gt;
&lt;p&gt;simple_uart_config (0, 9, 0, 11, false):&lt;/p&gt;
&lt;p&gt;And set your baud rate on your terminal program to 38.4K and find the USB CDC serial port that should appear.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m embarrassed to say that I didn&amp;#39;t even clue-in to the onboard CDC emulation at first :-/&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;
&lt;p&gt;-m&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1068?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 12:23:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21f55b1d-a601-42cd-9aea-9011098f2a70</guid><dc:creator>Yalcin Akdogan</dc:creator><description>&lt;p&gt;In simple_uart project in the main.c&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;do not #define ENABLE_LOOPBACK_TEST&lt;/li&gt;
&lt;li&gt;comment out the simple_uart_get() function call. otherwise main function is waiting all the time for input.
Yalcin&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1067?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 11:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:568f11bf-4052-49ea-b149-7915b340bc3a</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Hi Nils,&lt;/p&gt;
&lt;p&gt;could you tell us what your mistake was? It is not running for me.
Are you using SoftDevice also?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1070?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 11:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db3e1724-cf56-4f40-8bba-7a9df1932a18</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Hi Nils,&lt;/p&gt;
&lt;p&gt;could you tell us what your mistake was? It is not running for me.
Are you using SoftDevice also?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1066?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 11:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52f433b3-07c3-4cbc-bd75-1752e4e24ee4</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;great :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1065?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 11:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3c0d572-7c05-42c4-8d93-3f9e251c4116</guid><dc:creator>Nils Minor</dc:creator><description>&lt;p&gt;Thanks, yes i made a silly mistake. Its running now with the simple_uart example. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1064?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 10:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1e04556-f286-49fc-826b-e5d6be475933</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;there are a few UART examples in the SDK, depending on which hardware you are using (Evaluation Kit or Development Kit). If you are using the PCA10001 Evaluation board, take a look at &lt;em&gt;nrf51822\Board\pca10001\uart_example&lt;/em&gt;. This example uses the com port interface, which is conveniently accessed via the USB. Albeit this example is quite simple..&lt;/p&gt;
&lt;p&gt;As far as I know, app_uart is part of the HCI transport layer, which is used in the connectivity chip examples. This transport layer is quite complex and not something you would use as a monitoring tool for debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1061?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 08:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2adc5acc-25d9-4fca-a46e-8245fb630756</guid><dc:creator>Nils Minor</dc:creator><description>&lt;p&gt;I started with eclipse and gcc, but didn&amp;#39;t get it to work fine.
Now i am working with Keil, normaly it works fine.&lt;/p&gt;
&lt;p&gt;But i need an monitor on the pc to talk with the device in the runtime, like you need it, right?&lt;/p&gt;
&lt;p&gt;nils&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1063?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 08:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c77e462b-c841-4c66-8a0a-74d034fe3143</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Hi Nils,
I am sorry, from your earlier mails I had the impression, you are using Eclipse.&lt;/p&gt;
&lt;p&gt;Yalcin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1060?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 08:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11e65283-b7a9-4e6f-b8a5-dea6996f9646</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Hi Nils,
I am sorry, from your earlier mails I had the impression, you are using Eclipse.&lt;/p&gt;
&lt;p&gt;Yalcin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART</title><link>https://devzone.nordicsemi.com/thread/1059?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2013 08:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fce6911-744b-458d-87e3-4388fed98c27</guid><dc:creator>Yalcin Akdogan</dc:creator><description>&lt;p&gt;I need also help to send printf outputs via UART to a serial terminal.&lt;/p&gt;
&lt;p&gt;I am also working on Eclipse + GCC environment and using Evaluation Kit and my BLE application uses S110_SoftDevice.&lt;/p&gt;
&lt;p&gt;questions are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which uart- support files from Nordic S. SDK are to add to the build?&lt;/li&gt;
&lt;li&gt;How to connect (printf -- putc)?&lt;/li&gt;
&lt;li&gt;Which way make more sense? Using either USB (COMx) or other GPIOs as UART output?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Yalcin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>