<?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 fails after softdevice_setup in RUN mode. Works in DEBUG. HFCLK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30452/serial-port-fails-after-softdevice_setup-in-run-mode-works-in-debug-hfclk</link><description>ANT S212, nRF52: 
 I&amp;#39;ve read all the links in the forum regarding serial port running in debug mode and not in run mode. 
 In my case, it works in RUN mode until softdevice_setup() is called. 
 In other words: 
 s_write(&amp;quot;tst2\n\r&amp;quot;); // this prints in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Feb 2018 19:12:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30452/serial-port-fails-after-softdevice_setup-in-run-mode-works-in-debug-hfclk" /><item><title>RE: Serial port fails after softdevice_setup in RUN mode. Works in DEBUG. HFCLK?</title><link>https://devzone.nordicsemi.com/thread/121577?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 19:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff77d1a8-d424-45a1-b08a-14964463e060</guid><dc:creator>Steph van Schalkwyk</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I may revisit this later if we decide to add FreeMODBUS. Right now I only use it for debugging.&lt;/p&gt;
&lt;p&gt;It does seem that the UART IRQs are not asserted after softdevice_setup.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll come back to this at some stage.&lt;/p&gt;
&lt;p&gt;Thanks for the help.&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 fails after softdevice_setup in RUN mode. Works in DEBUG. HFCLK?</title><link>https://devzone.nordicsemi.com/thread/121382?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 12:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19e61cf4-c165-4d6f-95f3-bbd234123952</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Let me know if you want us to investigate this further. This&amp;nbsp;will most likely require&amp;nbsp;you to upload/described your project in more details. If you do not want to share code in public, you can create a new private case.&lt;/p&gt;
&lt;p&gt;Are you talking about the UART IRQs?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port fails after softdevice_setup in RUN mode. Works in DEBUG. HFCLK?</title><link>https://devzone.nordicsemi.com/thread/121004?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 16:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1003650-0a90-4bb9-92bd-ff46cfc8137a</guid><dc:creator>Steph van Schalkwyk</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;I changed the serial port from interrupt to polling and that is working for me now. It isn&amp;#39;t entirely satisfactory, but will have to do.&lt;/p&gt;
&lt;p&gt;It seems the IRQ is not asserted after the softdevice initialization (S212).&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Steph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial port fails after softdevice_setup in RUN mode. Works in DEBUG. HFCLK?</title><link>https://devzone.nordicsemi.com/thread/120836?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 13:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8569dafa-d144-4e70-bb51-d02ccc884777</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If the code is running after softdevice_init function call, it does sound like this could be an issue with the HFCLK, as all clocks are run in Debug mode. However, it sounds strange that the clock should be running before initializing the softdevice, but not after. Have you tried calling&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s212.api.v5.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#ga3e5afb495a1b0307c749cc268df94a74"&gt;sd_clock_hfclk_request&lt;/a&gt;&lt;span&gt;&amp;nbsp;after softdevice_init, to see if this solve the issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you provide some more details on what is happening in the s_write function, and the UART/softdevice config?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>