<?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>nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29814/nrf52832-uart-sdk14</link><description>Context :
I am using a nrf52832 to communicate via UART to a STM32 on a custom board. I&amp;#39;ve based my work on the Ble nus service example.
Main change from the DK is that i don&amp;#39;t have an external 32khz so i enabled NRF_CLOCK_LF_SRC_RC 
 I recently updated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jan 2018 13:42:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29814/nrf52832-uart-sdk14" /><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118394?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2018 13:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf560330-5f97-4be5-93d9-22ba54bcdfa5</guid><dc:creator>T_chapelle</dc:creator><description>&lt;p&gt;Sorry I didn&amp;#39;t took the time to explain all the steps but i though it would take too long to do it. At the same time I did restart from scratch the migration and managed to find the problem.&lt;/p&gt;
&lt;p&gt;As i said, i disabled the easyDma (
&lt;em&gt;#define UART_EASY_DMA_SUPPORT 0 #define UART0_CONFIG_USE_EASY_DMA 0&lt;/em&gt;)
but what did the trick was commenting the line &lt;em&gt;#define UARTE_PRESENT&lt;/em&gt; in nrf52832_peripherals.h. Since then, the uart with HW flow control is working fine at 115200. If anyone have an explanation, i would be glad to hear it. I will set this comment as an answer if no tech tell me i&amp;#39;m wrong.&lt;/p&gt;
&lt;p&gt;Thanks for the support Sigurd !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118393?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2018 08:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32d6d1fa-392f-4670-8670-635ab5df9133</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Since it worked fine before migrating to SDK 14, there is probably something you missed when you migrated. Could you explain the steps you did when you migrated to SDK 14 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118391?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 15:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee7d2688-d4e9-448f-a143-5ef5853aaae9</guid><dc:creator>T_chapelle</dc:creator><description>&lt;p&gt;I&amp;#39;m still struggling with this problem and could really use some guidance on the topic :-(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118390?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 07:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b6e9d6e-b7bc-4e7b-88d9-f15ad837e58b</guid><dc:creator>T_chapelle</dc:creator><description>&lt;p&gt;What pins are you using for UART?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RX_PIN_NUMBER  6
#define TX_PIN_NUMBER  5
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 8
#define HWFC           true
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Does it make any difference if you set the priority to APP_IRQ_PRIORITY_HIGH ? No difference&lt;/p&gt;
&lt;p&gt;Do you have UART0_CONFIG_USE_EASY_DMA set to 1 in sdk_config.h ? No, it&amp;#39;s set to 0&lt;/p&gt;
&lt;p&gt;Did you have this issue when you used &amp;quot;SDK12/s132 version 3.0&amp;quot; ? No i didn&amp;#39;t have the problem. The main change i&amp;#39;ve done for the migration from the sdk 12 of the program concern BLE functions.&lt;/p&gt;
&lt;p&gt;Does it make any difference if you turn off the nrf_log module ? I.e. set NRF_LOG_ENABLED to 0 in sdk_config.h ? NRF_LOG_ENABLED is already set to 0&lt;/p&gt;
&lt;p&gt;Have you done the migration for the nrf_log ? No i didn&amp;#39;t (i will look to it)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118392?ContentTypeID=1</link><pubDate>Sun, 17 Dec 2017 23:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fe34f17-3f3e-4522-bdd8-3a8b9db49b7e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What pins are you using for UART?&lt;/p&gt;
&lt;p&gt;Does it make any difference if you set the priority to &lt;code&gt;APP_IRQ_PRIORITY_HIGH&lt;/code&gt; ?&lt;/p&gt;
&lt;p&gt;Do you have &lt;code&gt;UART0_CONFIG_USE_EASY_DMA&lt;/code&gt; set to 1 in sdk_config.h ?&lt;/p&gt;
&lt;p&gt;Did you have this issue when you used &amp;quot;SDK12/s132 version 3.0&amp;quot; ?&lt;/p&gt;
&lt;p&gt;Does it make any difference if you turn off the nrf_log module ? I.e. set &lt;code&gt;NRF_LOG_ENABLED&lt;/code&gt; to 0 in &lt;code&gt;sdk_config.h&lt;/code&gt; ?&lt;/p&gt;
&lt;p&gt;Have you done the migration for the nrf_log ? See &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/migration.html?cp=4_0_2_1_7_4_1#migration_libs_nrf_log"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118389?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 09:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc9a1940-1a95-49e9-b6ac-bbb233c66d26</guid><dc:creator>T_chapelle</dc:creator><description>&lt;p&gt;Yes, i do call app_uart_get in the uart_event_handle fonction that i initialized in :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const app_uart_comm_params_t comm_params =
{
    RX_PIN_NUMBER,
    TX_PIN_NUMBER,
    RTS_PIN_NUMBER,
    CTS_PIN_NUMBER,
APP_UART_FLOW_CONTROL_ENABLED, 
    false,
UART_BAUDRATE_BAUDRATE_Baud115200
};

APP_UART_FIFO_INIT( &amp;amp;comm_params,
                   UART_RX_BUF_SIZE,
                   UART_TX_BUF_SIZE,
                   uart_event_handle,
		APP_IRQ_PRIORITY_LOW,
                   err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and in the uart_event_handle :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void uart_event_handle(app_uart_evt_t * p_event)
{
	uint8_t serial_char;
	uint16_t i;

    switch (p_event-&amp;gt;evt_type)
    {
    case APP_UART_DATA_READY:

			if(app_uart_get(&amp;amp;serial_char) == NRF_SUCCESS)
			{
...
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118388?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 22:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cccee0cf-82a8-49f5-af2e-0d1a37a36a6d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The nRF5x RTS pin is set high when the nRF5x is unable to receive more bytes, i.e. when buffers are full, and want to stop the sending device sending until you&amp;#39;ve read the data which already came in so you don&amp;#39;t lose it. Are you reading the data which comes in?&lt;/p&gt;
&lt;p&gt;Since you are basing your code on ble_app_uart(BLE NUS example), are you calling &lt;code&gt;app_uart_get()&lt;/code&gt;when you get the &lt;code&gt;APP_UART_DATA_READY&lt;/code&gt; event ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118387?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2017 14:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b24776d-f14c-4999-bd65-429dedc4a651</guid><dc:creator>T_chapelle</dc:creator><description>&lt;p&gt;Further investigations : i added a app_timer and when it expire, called the following functions :
app_uart_flush();
app_uart_close();
uart_init(); // as in ble_app_uart example&lt;/p&gt;
&lt;p&gt;After that the uart communication is back for a while, but when i do some ble transfer, it fail again and I can see the RTS line held high before the timer expire.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118385?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 07:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aee1002-ff50-4553-a959-26003f5781cb</guid><dc:creator>T_chapelle</dc:creator><description>&lt;p&gt;My mistake, it&amp;#39;s the RTS pin that stay high (sorry for that)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118384?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 15:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b36774f9-86c0-47d1-b5ac-f6ebb183404b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The CTS pin is a input pin for the nRF52, and if the pin is high, then the STM32 is the one setting this pin high. Indicating to the nRF52 that the STM32 is not ready to receive any data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118386?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 07:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dec3d90b-4e3d-4d8f-b22d-ca8fede28589</guid><dc:creator>T_chapelle</dc:creator><description>&lt;p&gt;Yes i tried debugging and everything else is working fine (BLE, leds, buttons), the app is not running into the error-handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Uart SDK14</title><link>https://devzone.nordicsemi.com/thread/118383?ContentTypeID=1</link><pubDate>Sun, 03 Dec 2017 15:51:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56f04ae4-c604-459d-9c13-cfb7249c23cb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried debugging, and seeing if you are running into the error-handler ? See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this post&lt;/a&gt; on debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>