<?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>Uart init problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25928/uart-init-problem</link><description>I work with ble_app_uart example and want to move uart init and event handler into separate file( e.g uart.c).
I just copy uart_init, uart_event_handler functions with some macros into uart.c file. 
 after that uart module initilized (check in registers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 14 Oct 2017 13:33:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25928/uart-init-problem" /><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102128?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 13:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbb6fc5a-7a31-4a4a-8126-ea09154cfa40</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;So have you added code in main() to send characters and scope the tx pin? The &amp;quot;yes&amp;quot; answer above was too ambiguous!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102131?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 05:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:822e7da9-83ad-42ba-9546-f98f8582f6c5</guid><dc:creator>Stas</dc:creator><description>&lt;p&gt;yes. ble_app_uart work great in original view (when uart initialize and event handler locate in main.c).
Ble_nus service works (I put some SEGGER mark in ble event). But uart event handler get nothing.
in debug mode I can see that uart register has correct values (baudrate, pin numbers and etc). I use SDK14, softdevice 5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102130?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 23:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7307c320-fa5b-41e6-9287-a7069cc1e2f7</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Can you send some characters in the main() and scope the tx pin?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102129?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 21:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1816ff4-00ea-4834-9bbd-d834f42f5d7e</guid><dc:creator>Doug_H</dc:creator><description>&lt;p&gt;What version of the SDK are you using? I have found strange behavior in v11.0 that is fixed in 14.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102127?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 18:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dbe1af9-37ae-4dff-a198-205809967f44</guid><dc:creator>Stas</dc:creator><description>&lt;p&gt;is it correct to define m_nus in my new ab_uart.h file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_NUS_DEF(m_nus);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102126?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 15:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:445435ea-2dbe-42c2-b5bd-dedccbabdaaa</guid><dc:creator>Stas</dc:creator><description>&lt;p&gt;Disabled. I change only Macros with pin number define  to numbers themselves. (For not including pca10040.h). Other from Nordic ble_uart examples&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102125?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 15:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35e7cc4f-566e-4348-888f-0c4c57e2081f</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;In the original example was the flow control enabled or disabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102124?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 14:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:555e2c1f-ad29-475e-b791-943043f535e7</guid><dc:creator>Stas</dc:creator><description>&lt;p&gt;I didn&amp;#39;t try. But actually it&amp;#39;s the example code that worked, I just extruded uart things into separate file for better readable&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart init problem</title><link>https://devzone.nordicsemi.com/thread/102123?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 13:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad88b94-2854-4939-b499-26f3b342df49</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Does a lower baud rate like 57600 work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>