<?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>nRF51822 - UART Init error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13212/nrf51822---uart-init-error</link><description>Hi, 
 We try to communicate between nRF51822 SoC and a GPS module through UART on a custom board but failed initializing UART. 
 More details: 
 
 We use nRF51822 as a BLE peripheral using SoftDevice S110 v9.0 
 BLE tasks work fine (initializing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Aug 2016 11:20:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13212/nrf51822---uart-init-error" /><item><title>RE: nRF51822 - UART Init error</title><link>https://devzone.nordicsemi.com/thread/50385?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 11:20:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea484f8e-287c-4cde-9e5d-d6112050447e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@confusedindividual and @stunt_man : Are you able to provide a logic trace/capture of the UART lines when the issue occurs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - UART Init error</title><link>https://devzone.nordicsemi.com/thread/50384?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 18:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93af9ceb-f77b-4b36-8a4a-77d4d923a5cc</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;I am seeing this error as well. Adding the pull-up line does not fix the problem for me. Outside of using a lower baud rate and likely different pin numbers, my set up is the same as @stunt_man.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - UART Init error</title><link>https://devzone.nordicsemi.com/thread/50383?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 10:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ea878b-73f4-4f2e-87f5-dd93dce06e13</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@stunt_man: It should not be necessary to configure any of the UART pins as inputs/outputs prior to calling uart_init(), as this is done internally in the uart_init() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - UART Init error</title><link>https://devzone.nordicsemi.com/thread/50382?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 11:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64af3923-03c8-44c7-8da3-9761a0903c14</guid><dc:creator>stunt_man</dc:creator><description>&lt;p&gt;Not yet. Before calling uart_init(), I added this line of code:
nrf_gpio_cfg_input(UART_RX_PIN, NRF_GPIO_PIN_PULLUP);&lt;/p&gt;
&lt;p&gt;It seems that uart_init() does not crash the device anymore. Unfortunately, when I add this line, I can not enter debug mode anymore, device is not seen by JLink anymore.&lt;/p&gt;
&lt;p&gt;So, I am not able to confirm it solves the problem right now. uart_init() does not crash the device anymore as I successfully turned on a LED just after this step but I can not see if UART is operational.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - UART Init error</title><link>https://devzone.nordicsemi.com/thread/50381?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 07:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bda1138d-4d31-4077-97e7-3f14fc4fe74d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@stunt_man: Have you been able to solve the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - UART Init error</title><link>https://devzone.nordicsemi.com/thread/50380?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2016 18:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8ba69b9-d34e-4012-8d23-76a7b03e969b</guid><dc:creator>Paolo D</dc:creator><description>&lt;p&gt;The error code indicates that the FRAMING and BREAK bits in the UART error register are set. This suggests that maybe the UART RX pin is being held low. For normal UART operation it should always be held high by the transmitting device when it&amp;#39;s idle, except for when the transmitting device pulls it low for short pulses to send data. So if your GPS module hasn&amp;#39;t started driving the pin yet and it&amp;#39;s floating then this error might occur. Try enabling the internal pull-up on the UART RX pin to see if that fixes the error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>