<?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>Hang in power cycle due to UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37067/hang-in-power-cycle-due-to-uart</link><description>Hi, 
 This is Srivisakh. I am using a custom made board integrated with nrf52832 board in which UART is configured. I am using Segger IDE for code development and building. When I am building the code in debug configuration with UART integrated and flashing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Aug 2018 15:26:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37067/hang-in-power-cycle-due-to-uart" /><item><title>RE: Hang in power cycle due to UART</title><link>https://devzone.nordicsemi.com/thread/145165?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 15:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b14ac768-b6fa-404a-a182-f540bf1430ce</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume that you are not seeing this issue on the nRF52832-DK, but only on the custom board.&lt;/p&gt;
&lt;p&gt;One theory about what is happening, is that you are getting some kind of error on the UART peripheral. It could maybe be caused by noise, bad soldering, long traces, etc. Pulling the RX high somehow solves this issue. When this issue happens, the application will then get a APP_UART_COMMUNICATION_ERROR, and the error-code will be passed into the error-handler. In the release configuration the nRF5 will just reset in app_error_fault_handler() where NVIC_SystemReset() is called, but in the debug configuration you will hit a breakpoint in the APP_ERROR_HANDLER(), and it will look like the power is &amp;ldquo;hanging&amp;rdquo;. If you run a debug-session in Segger Embedded Studio, you should be able to verify this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hang in power cycle due to UART</title><link>https://devzone.nordicsemi.com/thread/144583?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 14:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cac7ba6-7d56-4ab5-9e0c-c012393c9410</guid><dc:creator>Srivisakh</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;One update. When I did the below change, I am not getting this issue.&lt;/p&gt;
&lt;p&gt;&amp;quot;nrf_gpio_cfg_input(RX_PIN_NUMBER, NRF_GPIO_PIN_PULLUP);&amp;quot;&lt;/p&gt;
&lt;p&gt;The above resolution I found it in Nordic forum only to resolve for APP_UART_COMMUNICATION_ERROR.&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t know what is the effect the pull up of RX_PIN will resolve this power cycle issue.&lt;/p&gt;
&lt;p&gt;Can you give more insights in to this one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hang in power cycle due to UART</title><link>https://devzone.nordicsemi.com/thread/144078?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 07:28:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:521137e0-7f48-4754-b42c-eaa7a72d64a9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I have not been able to reproduce this.&amp;nbsp;Have you done any modifications to the project that might have caused this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hang in power cycle due to UART</title><link>https://devzone.nordicsemi.com/thread/142674?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 15:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae4c3671-a48e-4f5a-9923-3fefec7ceeed</guid><dc:creator>Srivisakh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the response. I am using nordic SDK 15 and am using the uart example code found in peripheral/uart directory. The driver version is pca10040. When I am building the code in debug configuration and flashing in to the board, I am able to see echo working in teraterm application. But if I remove the USB power from the board and connect it again to my PC, I am not able to perform echo operations in teraterm application. For the uart operation to work I need to flash the hex file again to the board.&lt;/p&gt;
&lt;p&gt;But this issue is not coming when I am flashing the hex file generated from release configuration.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hang in power cycle due to UART</title><link>https://devzone.nordicsemi.com/thread/142648?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 14:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1924719-b75b-49f8-95bc-5fcd64aec8be</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you explain a bit more why you believe it is &amp;ldquo;hanging in power cycle&amp;rdquo; ? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is happening when it is &amp;ldquo;hanging in power cycle&amp;rdquo; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What example in the SDK is this? Is it ble_peripheral/ble_app_uart? Or peripheral/uart example?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>