<?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>Using S140 with nRF52840, UART example question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25851/using-s140-with-nrf52840-uart-example-question</link><description>Hello,
I have a problem. 
 For example, I am using UART, and I had trouble printing everything when I used &amp;quot;app_uart_put ()&amp;quot; continuously. 
 My source is simple. 
 int main (void)
{
&amp;#160;&amp;#160; uart_init ();

&amp;#160;&amp;#160; ...(syncopation)

&amp;#160;&amp;#160; for (cnt = 0 ;; cnt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Oct 2017 04:10:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25851/using-s140-with-nrf52840-uart-example-question" /><item><title>RE: Using S140 with nRF52840, UART example question</title><link>https://devzone.nordicsemi.com/thread/101823?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 04:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c433eaf3-e9f9-47e8-a7ef-6aaf0c380969</guid><dc:creator>jwcheon</dc:creator><description>&lt;p&gt;Hi, Martin.&lt;/p&gt;
&lt;p&gt;thank you for the reply.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve fixed the issue.
I was working on applying &amp;quot;uart&amp;quot; to the &amp;quot;hrs&amp;quot; example, and I was requesting app_uart_put using &amp;quot;app_uart.c&amp;quot;.&lt;/p&gt;
&lt;p&gt;So, as Martin puts it,
  If app_uart_put is requested continuously without putting, &amp;lt;ERROR_NO_MEM&amp;gt; is returned and it is confirmed that the transfer is not performed.&lt;/p&gt;
&lt;p&gt;After changing from &amp;quot;app_uart.c&amp;quot; to &amp;quot;app_uart_fifo.c&amp;quot;, I confirmed that the app_uart_put is continuously output even when it requests continuously.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using S140 with nRF52840, UART example question</title><link>https://devzone.nordicsemi.com/thread/101821?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 01:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e11cc3c4-1640-4dd8-bf16-c98046530348</guid><dc:creator>jwcheon</dc:creator><description>&lt;p&gt;Only &amp;#39;A&amp;#39; is output equally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using S140 with nRF52840, UART example question</title><link>https://devzone.nordicsemi.com/thread/101820?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 13:10:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07974fcf-7dd8-481d-9ae8-68503261905f</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;what will happen if you will change the code in following way:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;for (cnt = 0 ;; cnt ++)
{
     app_uart_put (&amp;#39;A&amp;#39;);
     app_uart_put (cnt + 0x30);
     nrf_delay_ms (200);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using S140 with nRF52840, UART example question</title><link>https://devzone.nordicsemi.com/thread/101822?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 12:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf5cd5a-b5b8-460e-b8ed-4ff558a670f0</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;app_uart_put is a non blocking function (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/group__app__uart.html#ga2e4c8407274a151e72ed5a226529dc36"&gt;see documentation&lt;/a&gt;). This means that if you call it many times without any delays in between the first byte you try to send (&amp;#39;A&amp;#39;) may not have been transmitted before you try to transfer another. You should check the return code of app_uart_put() and see if that can give you any clue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>