<?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>mbed OS serial port hang.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15931/mbed-os-serial-port-hang</link><description>Hi, 
 I&amp;#39;ve got a nice, well-documented bug here:
 github.com/.../25 
 The short of it: Adding a single printf() statement to this mbed OS example causes my nRF51-DK board to hang eventually, if I don&amp;#39;t connect to the exposed /dev/ttyACM0 port using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Aug 2016 09:30:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15931/mbed-os-serial-port-hang" /><item><title>RE: mbed OS serial port hang.</title><link>https://devzone.nordicsemi.com/thread/60772?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2016 09:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7720a2cd-6cd5-49e9-8e5f-3acbbcee8251</guid><dc:creator>Dimitri</dc:creator><description>&lt;p&gt;Great! This works now! Thank you Max!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed OS serial port hang.</title><link>https://devzone.nordicsemi.com/thread/60771?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2016 09:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4347ded-b5ac-4ba2-ae37-3a9a2e78592f</guid><dc:creator>maxv</dc:creator><description>&lt;p&gt;This has finally been resolved, meaning that mbed OS is actually useful to people using the Nordic serial port w/o hardware flow control.&lt;/p&gt;
&lt;p&gt;Issues: &lt;a href="https://github.com/ARMmbed/mbed-os-example-ble/issues/25"&gt;github.com/.../25&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The short answer: Create an mbed_app.json file in your app folder, and add the following to it:&lt;/p&gt;
&lt;p&gt;&amp;quot;NRF51_DK&amp;quot;: {
&amp;quot;target.uart_hwfc&amp;quot;: 0
}&lt;/p&gt;
&lt;p&gt;or in your case, probably:&lt;/p&gt;
&lt;p&gt;&amp;quot;NRF52_DK&amp;quot;: {
&amp;quot;target.uart_hwfc&amp;quot;: 0
}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed OS serial port hang.</title><link>https://devzone.nordicsemi.com/thread/60770?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 14:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90da2e51-816b-4e97-8822-4dbc416f2fc8</guid><dc:creator>maxv</dc:creator><description>&lt;p&gt;Yeah I had problems with this on an nRF52-DK as well, when using only the pure Nordic nRF5 SDK. I&amp;#39;ve had some serious upset moments with the serial port over the past 6 months.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed OS serial port hang.</title><link>https://devzone.nordicsemi.com/thread/60769?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 13:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87e3a53d-6fb9-481c-a97d-6aaabc91a733</guid><dc:creator>Dimitri</dc:creator><description>&lt;p&gt;Hi Max,&lt;/p&gt;
&lt;p&gt;I am also experiencing the same issue with mbed OS on a nRF52-DK V1.1.0. I hope Nordic can quickly fix this as I am aggressively prototyping with the nRF52. It&amp;#39;s good to know I&amp;#39;m not the only one experiencing this!&lt;/p&gt;
&lt;p&gt;Dimitri&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbed OS serial port hang.</title><link>https://devzone.nordicsemi.com/thread/60768?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 12:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83159027-c352-45e3-8968-8da88f6f2151</guid><dc:creator>maxv</dc:creator><description>&lt;p&gt;Actually, I just realized also that this is potentially the reason why creating a Peripheral device and hooking it up to a USB power bank instead of to a PC always caused it hang within a few seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>