<?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>Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23054/serial-port-only-works-when-debugging</link><description>Custom app running on a nRF52 devboard. Serial port runs when I use the debugger and continues after I exit the debugger, but does not run from a cold start. 
 using the Nordic UART FIFO code.
NRF_LOG_USES_UART=1
and DEBUG are defined in the C preprocessor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Jun 2018 12:59:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23054/serial-port-only-works-when-debugging" /><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/138286?ContentTypeID=1</link><pubDate>Fri, 29 Jun 2018 12:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c75abde6-cfc7-4afd-bf24-4f2534b6915f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When I test ble_app_uart here, RTT works, and nRF_LOG has the following settings:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5b6d8bd8b6e54bc3b3f88eb45d54296e/nrf_5F00_log.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The log is set to DEFERRED mode, and the LOG is processed in idle_state_handle(). idle_stat_handle_should look like the following for correct processing of the log (bug in ble_app_uart SDK15):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void idle_state_handle(void)
{
    if (NRF_LOG_PROCESS() == false)
    {
        nrf_pwr_mgmt_run();
    }
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/137795?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 07:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e75d0b0b-0d4f-43b0-af45-c1ecd3c9b0b9</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;Hello I have the same Problem. I use nRF52840, nRF5_SDK_15.0.0_a53641a, nrf5_SDK_for_Mesh_v2.0.1, Python3.5.2 64bit on linux mint 18 64bit. JLink_Linux_V633f_x86_64.&lt;/p&gt;
&lt;p&gt;In aci_uart.py I set :&amp;nbsp; def __init__(self, port, baudrate=115200, device_name=None, rtscts=False):&lt;/p&gt;
&lt;p&gt;In Debug-mode it works:&lt;/p&gt;
&lt;p&gt;Activating auto-logging. Current session state plus future input saved.&lt;br /&gt;Filename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : log/18-178-8-46_interactive_session.log&lt;br /&gt;Mode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : backup&lt;br /&gt;Output logging : False&lt;br /&gt;Raw input log&amp;nbsp; : False&lt;br /&gt;Timestamping&amp;nbsp;&amp;nbsp; : False&lt;br /&gt;State&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : active&lt;br /&gt;Python 3.5.2 (default, Nov 23 2017, 16:37:01) &lt;br /&gt;Type &amp;#39;copyright&amp;#39;, &amp;#39;credits&amp;#39; or &amp;#39;license&amp;#39; for more information&lt;br /&gt;IPython 6.4.0 -- An enhanced Interactive Python. Type &amp;#39;?&amp;#39; for help.&lt;br /&gt;&lt;br /&gt;In [1]: send(cmd.Echo(&amp;quot;test&amp;quot;))&lt;br /&gt;&lt;br /&gt;In [2]: 2018-06-27 08:46:48,476 - INFO - ttyACM0: {event: DeviceEchoRsp, data: {&amp;#39;data&amp;#39;: bytearray(b&amp;#39;test&amp;#39;)}}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But if i plug out plug-in the device i get :&lt;/p&gt;
&lt;p&gt;In [2]: 2018-06-27 08:49:12,153 - INFO - ttyACM0: cmd Echo, timeout waiting for event&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in examples/serial/include/sdk_config.h&amp;nbsp; there are a lot of definitions with UART what exactly should i set to 1, if this is the problem ?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m new in this topic and my aim is to receive all the packets in the mesh and to send them to the host pc but first i whant to understand how to work with UART and this Board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/90729?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 11:01:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b2f3c82-e300-4b0f-a2b4-e5b47d1e5df6</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When the chip is running in debug mode, the HFCLK (HF crystal) is constantly running, could the problem be related to the HFCLK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/90730?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 13:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a200d52-61b2-4b8c-9246-11753f064d88</guid><dc:creator>keith v</dc:creator><description>&lt;p&gt;Yes the examples work fine, it&amp;#39;s definitely something I ( or actually the previous developer did, as it has never worked right )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/90731?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 10:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2b90cf-10d5-483d-831a-05d35fcfaf02</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I see. Just for reference, does the UART logging work normally when using one of the examples in the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/90727?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 19:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07d91cbe-6fc6-41cd-a55d-49a67f7c6ad4</guid><dc:creator>keith v</dc:creator><description>&lt;p&gt;My custom app does not use sdk_config.h like the examples, the defines are set in the compiler definitions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/90732?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 09:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:703405a8-e137-42be-9596-e4fc1151e66a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;From SDK 12.0.0, the defines for using logging should be set in sdk_config.h, could you check the log settings in sdk_config.h?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/90728?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 14:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2947d23c-b060-46a8-850d-12005fa73750</guid><dc:creator>keith v</dc:creator><description>&lt;p&gt;oops, SDK 13, S132&lt;/p&gt;
&lt;p&gt;If I program an example hex from nrfgo the serial port works fine.
I tried the peripheral serial example and the multiprotocol example.
I have other projects that work, and Ive been through the #defines.&lt;/p&gt;
&lt;p&gt;This is very weird.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port only works  when debugging</title><link>https://devzone.nordicsemi.com/thread/90733?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 09:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b01ce06e-687f-4064-a632-40605e7d8fc4</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Which version of the SDK do you use? Do you see the same problem if you run one of our examples  in the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>