<?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>Initializing UART for BLE-NUS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12391/initializing-uart-for-ble-nus</link><description>Hi, 
 Using ble-app-uart sdk9 example: 
 
 
 Is there a difference where I initialize uart in main? My code is able to run when I shifted the uart_init() after ble_stack_init on my custom board , but gets stucks at softdevice initializing ble stack</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Mar 2016 11:32:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12391/initializing-uart-for-ble-nus" /><item><title>RE: Initializing UART for BLE-NUS</title><link>https://devzone.nordicsemi.com/thread/46844?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 11:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e64e3a31-a4ec-4cb5-821e-63271c18331c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;This seems very odd.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I tried the &amp;quot;ble_peripheral\ble_app_uart&amp;quot; example and tried to call uart_init() both before and after ble_stack_init(). I was not able to reproduce your issue.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The baudrates shouldn&amp;#39;t have anything to do with ble_nus_init() at all.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;UART pins should not be left floating.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Does your board have an external low frequency XTAL?&lt;/p&gt;
&lt;p&gt;Can you please follow RK&amp;#39;s advice and debug and step through your code to pinpoint the errors? &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;Here is a guide on debugging&lt;/a&gt;. The errors you describe just doesn&amp;#39;t make sense at all so we will need some hard facts to be able to help you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing UART for BLE-NUS</title><link>https://devzone.nordicsemi.com/thread/46845?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 01:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23f0e7d0-b055-47e0-b3d1-9ba840c2d754</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&amp;quot;Stuck&amp;quot;. Code does not &amp;#39;stick&amp;#39;, it&amp;#39;s running somewhere, it&amp;#39;s doing something. You are probably in an error handler. Put a breakpoint in the error handler or hit break in the debugger and find out where you are and what function returned what error.&lt;/p&gt;
&lt;ol start="3"&gt;
&lt;li&gt;No it&amp;#39;s not - don&amp;#39;t connect floating pins to RTS/CTS.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>