<?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>[SOLVED] nrf_serial.c with nRF52032 - only first-time string printed to terminal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30420/solved-nrf_serial-c-with-nrf52032---only-first-time-string-printed-to-terminal</link><description>[SOLVED] turn off logging through UART. 
 Hello 
 I&amp;#39;m experiencing a strange issue where my device sends a beacon under DEBUG, but does not under RUN. 
 Due to that I tried to have the debug status written to a terminal. 
 I included nrf_serial.c and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Feb 2018 00:16:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30420/solved-nrf_serial-c-with-nrf52032---only-first-time-string-printed-to-terminal" /><item><title>RE: nrf_serial.c with nRF52032 - only first-time string printed to terminal</title><link>https://devzone.nordicsemi.com/thread/120497?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 00:16:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4d358c1-00b4-4313-ac83-4bfde10e1f9e</guid><dc:creator>Steph van Schalkwyk</dc:creator><description>&lt;p&gt;[SOLVED] - turn off logging through UART. Debug through RTT.&lt;/p&gt;
&lt;p&gt;This code (taken from the serial example):&lt;/p&gt;
&lt;p&gt;void serial_init(void)&lt;br /&gt;{&lt;br /&gt; ret_code_t ret;&lt;br /&gt; ret = nrf_drv_clock_init();&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt; ret = nrf_drv_power_init(NULL);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;/p&gt;
&lt;p&gt;nrf_drv_clock_lfclk_request(NULL);&lt;br /&gt; ret = app_timer_init();&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;/p&gt;
&lt;p&gt;ret = nrf_serial_init(&amp;amp;serial_uart, &amp;amp;m_uart0_drv_config, &amp;amp;serial_config);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt; static char tx_message[] = &amp;quot;Hello nrf_serial!\n\r&amp;quot;;&lt;br /&gt; ret = nrf_serial_write(&amp;amp;serial_uart,&lt;br /&gt; tx_message,&lt;br /&gt; strlen(tx_message),&lt;br /&gt; NULL,&lt;br /&gt; NRF_SERIAL_MAX_TIMEOUT);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt; ret = nrf_serial_flush(&amp;amp;serial_uart, NRF_SERIAL_MAX_TIMEOUT);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;Returns &amp;quot;8&amp;quot; from&amp;nbsp;ret = nrf_serial_init(&amp;amp;serial_uart, &amp;amp;m_uart0_drv_config, &amp;amp;serial_config);&lt;/p&gt;
&lt;p&gt;Note: I am using this in scan and forward mode with 4 channels.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>