<?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>Reset during UART send/receive</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50116/reset-during-uart-send-receive</link><description>I wrote UART echo sample based on ble_app_uart_c for S140/ nRF52840-DK. 
 When nRF52 receive one line on USB/UART, it send same line to USB/UART. 
 I also write Linux socket sample for keep send/receive one text line to /dev/ttyACM0. 
 On normal condition</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2019 14:22:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50116/reset-during-uart-send-receive" /><item><title>RE: Reset during UART send/receive</title><link>https://devzone.nordicsemi.com/thread/205087?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 14:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ba42526-2ca1-4edf-a180-0e9cfff39804</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve reproduce the issue and see that a&amp;nbsp;&lt;span&gt;APP_UART_COMMUNICATION_ERROR is raised, more specifically&amp;nbsp;an &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=3_1_0_34_9_4#register.ERRORSRC"&gt;OVERRUN&lt;/a&gt;&amp;nbsp;error due to the CPU not being able to process what&amp;#39;s in the buffer before new data is sent during a reset.This causes the application to hard fault. You could try enabling&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__app__uart.html#gad0b0f33b12902ce08681e06f304f0cba"&gt;Hardware Flow Control&lt;/a&gt;&amp;nbsp;and see if the issue persists.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset during UART send/receive</title><link>https://devzone.nordicsemi.com/thread/204377?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 00:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7663f3c-08dc-4358-a71c-1ef411699684</guid><dc:creator>toruish</dc:creator><description>&lt;p&gt;It reproduced on ble_app_uart_c_pca10056_s140 sample.&lt;/p&gt;
&lt;p&gt;During writing to serial port, nRF52840-DK does not boot by Reset button.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Steps&lt;/p&gt;
&lt;p&gt;1) Build and run&amp;nbsp;&lt;span&gt;ble_app_uart_c_pca10056_s140 sample on&amp;nbsp;&lt;/span&gt;&lt;span&gt;nRF5_SDK_15.3.0_59ac345&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2)&amp;nbsp;nRF52840-DK LED1 blinks every 5sec.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) Run&amp;nbsp;&lt;/span&gt;python script to keep writing to Serial port&lt;/p&gt;
&lt;p&gt;4) Press &amp;quot;IF BOOT/RESET&amp;quot; button on DK.&lt;/p&gt;
&lt;p&gt;5) Boot failed, LED1 does not blink.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I remove uart_init() and printf() on sample main function. That test case is success, I can see LED1 blinks on step 5.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I run this python script on iMac for step3.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;import serial

def testSerial(tty):
  ser = serial.Serial(tty, 115200, timeout = 1)
  while True:
    ser.write(b&amp;#39;hello\r&amp;#39;)
    print(&amp;quot;w&amp;quot;);

testSerial(&amp;#39;/dev/cu.usbmodem0006833998061&amp;#39;)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset during UART send/receive</title><link>https://devzone.nordicsemi.com/thread/201618?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4251a34c-8835-4d7c-a1e3-7d09ad83dd03</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be fixed in the newest SDK. Do you experience the same issue with the unmodified example from the SDK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset during UART send/receive</title><link>https://devzone.nordicsemi.com/thread/200347?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 17:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9cd7101-ad18-4006-b37f-4c3faad69bdc</guid><dc:creator>toruish</dc:creator><description>&lt;p&gt;I use SDK 15.3.&lt;/p&gt;
&lt;p&gt;Do you know &lt;span&gt;nrf_drv_usbd_errata.h::nrf_drv_usbd_errata_type_52840_fp1 issue is fixed on 15.3?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset during UART send/receive</title><link>https://devzone.nordicsemi.com/thread/200224?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 08:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fd0bb6a-22e1-4ef5-9a20-bc99c42c21ed</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using? Could you try the suggestion in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34605/usb-not-enumerating-after-reset/132837#132837"&gt;this thread&lt;/a&gt; and see if the issue is still persistent.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>