<?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>Couldn&amp;#39;t use flow control on 52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34256/couldn-t-use-flow-control-on-52832</link><description>Hi, 
 I&amp;#39;m using nRF5 SDK v15.0 with S132 v6.0. I have two questions: 
 1. I use the ble_app_uart example. We want to use high UART baud rate, so I change it to 1M baud rate and enable flow control(APP_UART_FLOW_CONTROL_DISABLED), it could work and output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 May 2018 01:59:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34256/couldn-t-use-flow-control-on-52832" /><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132849?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 01:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0ca3e77-1d96-4cf5-87c6-2c5a2eec65d9</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I think that the flow control is incorrectly inverted in the hardware for use with an FTDI part connected to a PC. The complication starts with the meaning of &amp;quot;flow control&amp;quot;, as there are at least two versions, the traditional modem CTS/RTS usage and the more modern CTS/RTS handshake. I added these comments to clarify this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief  Function for initializing the UART module.
 * Traditional Modem Flow Control
 * If flow control is enabled, a transmission will be automatically suspended when CTS is deactivated and
 * resumed when CTS is activated again.
 * A byte that is in transmission when CTS is deactivated will be fully transmitted before the transmission is
 * suspended.
 * nRF52 DTE Output pin to DCE - asserts to request transmit
 * nRF52 DTE Input pin from DCE - asserts to allow transmit
 *
 * Hardware Flow Control
 * &amp;quot;RTS/CTS handshaking&amp;quot; the DTE asserts RTS whenever it is ready to receive data from the DCE, and the DCE
 * asserts CTS whenever it is ready to receive data from the DTE. Unlike the original use of RTS and CTS with
 * half-duplex modems, these two signals operate independently from one another.
 * nRF52 DTE Output pin to DCE - asserts to allow DCE to transmit
 * nRF52 DTE Input pin from DCE - asserts to allow nRF52 DTE transmit
 */
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The nRF52 hardware supports the traditional modem usage, but the software is written for the more recent CTS/RTS handshake which requires an inverter for proper operation as the nRF52832 does not allow configuring active-high/low operation unless the lines are driven manually (the logic is inverted so does not work correctly)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132693?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 09:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e65ebe43-41a8-494d-a171-206f0663d274</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The FTDI chip is well known, and would not expect it to have this issue. Could it be that you have a counterfeit chip? Found this blog post which indicates that this might be a common problem:&amp;nbsp;&lt;a href="https://hackaday.com/2014/02/19/ft232rl-real-or-fake/"&gt;https://hackaday.com/2014/02/19/ft232rl-real-or-fake/&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132665?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 08:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f93c832-a9dc-4877-9013-f22363a602c6</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;I use our board to connect to the uart on the PCA10040 to work with flow control, it&amp;#39;s OK now. Is there any&amp;nbsp;&lt;span&gt;USB to serial UART module that you could introduce to us?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132651?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 07:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbc041ff-0c0d-42bc-a16d-e05d0303ae27</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Have you tried 9600? Also, have you tried different PCs and terminal clients?&amp;nbsp; It sounds like the problem might be on the&amp;nbsp;&lt;span&gt;FT232RL/PC side. Think you need to use a scope to confirm that.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132541?ContentTypeID=1</link><pubDate>Sat, 19 May 2018 08:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b1d1562-1573-4d56-a259-2f95164bdfcc</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I have&amp;nbsp;&lt;span&gt; enabled the HF crystal and &amp;nbsp;I also have tried 115200 baudrate, but I still get the 0x04 error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132469?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 08:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c753da6d-1181-4061-b9cf-dd0719451fd8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;0x4 means that there was a packet framing error (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uart.html?cp=2_1_0_49_9_3#register.ERRORSRC"&gt;UARTE-&amp;gt;ERRORSRC&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;A valid stop bit is not detected on the serial data input after all bits in a character have been received.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If you have a logic analyzer/scope I would suggest to probe the RX line to confirm whether the stop bit is missing or not. You could also try to enable the HF crystal while receiving, that will increase the baudrate accuracy.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;API calls to request/release HFXO:&lt;/p&gt;
&lt;p&gt;&lt;a title="sd_clock_hfclk_request" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_7_2_3#ga3e5afb495a1b0307c749cc268df94a74"&gt;sd_clock_hfclk_request&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a title="sd_clock_hfclk_release" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_7_2_2#ga7dcec5b896ce32fe70e9b54d7b523f55"&gt;sd_clock_hfclk_release&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132177?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 07:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60bb2b66-cdef-455b-b50d-30538416eff5</guid><dc:creator>John</dc:creator><description>&lt;p&gt;It&amp;nbsp;&lt;span&gt;occurs during transfer. The error reason is 0x04, what does it mean?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132039?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 12:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ef93b2-e573-478b-a0fa-ca99818d8b05</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Does the communication error occur during transfer, or does it fail before that? Wondering if it could be related to power-up or IO configuration. You can check the error source in NRF_UARTE-&amp;gt;ERRORSRC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132030?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 11:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:612d36d7-9e9c-4eb7-9afc-957500cdb8d7</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry. Yes, I have use&amp;nbsp;&lt;span&gt;APP_UART_FLOW_CONTROL_ENABLED to&amp;nbsp;enable flow control. For our board, it&amp;#39;s need to enable hardware flow control in the UART terminal on PC when work with the&amp;nbsp; USB to serial UART module, but it&amp;#39;s no need to do it for PCA10040. Now the UART could receive and send less data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, I found a problem. The UART would return an error&amp;nbsp;APP_UART_COMMUNICATION_ERROR in the&amp;nbsp;uart_event_handle function when I use PC to send a document, which is about 20k bytes. If I program the same code to PCA10040, it wouldn&amp;#39;t get the error. What reason would be?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use flow control on 52832</title><link>https://devzone.nordicsemi.com/thread/132020?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 11:30:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f19c8ca6-a402-467b-937a-dde8b4e94f1d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please confirm whether you observe this problem before or after enabling flow control. You said that you enabled flow control, but&amp;nbsp;APP_UART_FLOW_CONTROL_DISABLED implies that you are disabling it?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>