<?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>NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90723/nicla-sense-me-nrf52832-uart-rx-issue</link><description>Hello All, 
 I have ported the UART example ( &amp;lt;InstallFolder&amp;gt;\examples\peripheral\uart ) on top of blinky in nicla sense hardware. The TX is working only when rx pin is set as &amp;quot;UART_PIN_DISCONNECTED&amp;quot;. 
 The TX is also working if I comment out the below</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2022 11:39:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90723/nicla-sense-me-nrf52832-uart-rx-issue" /><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380586?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 11:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:085871db-938d-4dfd-9c16-706b90968af8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming that it fixed the problem. I&amp;#39;m glad to hear that it works now.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380583?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 11:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:668931aa-d3a4-4c4b-91f4-c9d3d0553283</guid><dc:creator>ijf1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;This fix is working. Configured&amp;nbsp;NFCT pins as GPIOs, and&amp;nbsp;Explicitly pulling up RX pin in the application after UART init.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much for your help and support. Really appreciate it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380547?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 09:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37c3ccf5-be37-431f-af30-147199fd8002</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ijaz,&lt;/p&gt;
&lt;p&gt;I noticed now that UART RX is assigned to P0.9, same pin that is used as the antenna input for NFC by default (&lt;span class="item"&gt;&lt;a title="Pin assignments" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pin.html?cp=4_2_0_3#pin_assign"&gt;Pin assignments&lt;/a&gt;&lt;/span&gt;, &lt;span class="item"&gt;&lt;a class="" title="Pin configuration" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/nfc.html?cp=4_2_0_41_1#concept_fq1_1bk_1s"&gt;Pin configuration&lt;/a&gt;&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;To allow this pin to be used as a regular GPIO, you need to build your project with the CONFIG_NFCT_PINS_AS_GPIOS flag.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1659949910827v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380537?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbc352d9-9211-41c7-83be-207122dfb90f</guid><dc:creator>ijf1</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/UARTeRROR.png" /&gt;&lt;/p&gt;
&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Please see the terminal screenshot for your reference. COMM. error triggered twice by default (Print from event handler), i have not even tried to send any data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380530?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:289a4c24-d370-4ad7-939a-d155e8f4960b</guid><dc:creator>ijf1</dc:creator><description>&lt;p&gt;&lt;span&gt;Are you sending lots of data when the assert occurs?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;==&amp;gt; No. I am just trying to send a char from PC terminal. In TX just printing some sample prints to make sure tx us working fine.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380529?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:32:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1310cd97-7ddc-4ffa-9ec8-20400344dd3f</guid><dc:creator>ijf1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I tried the above snippet as you mentioned. TX also not working. Some junk value getting printed sometimes. I am also doing the following init with respect to clock. Just for your reference.&lt;/p&gt;
&lt;p&gt;/* Initialize the low frequency clock */&lt;br /&gt;nrf_drv_clock_init()&lt;/p&gt;
&lt;p&gt;inrf_drv_power_init(NULL)&lt;/p&gt;
&lt;p&gt;/* Request the clock to not to generate events */&lt;br /&gt; nrf_drv_clock_lfclk_request(NULL);&lt;br /&gt; nrf_drv_clock_hfclk_request(NULL);&lt;/p&gt;
&lt;p&gt;while (!nrf_drv_clock_lfclk_is_running() &amp;amp;&amp;amp; !nrf_drv_clock_hfclk_is_running())&lt;br /&gt; ;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ijaz&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380525?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86dd1f1a-0de0-416f-aea9-240bfdc0dd50</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ijas,&lt;/p&gt;
&lt;p&gt;Good point, I forgot that TX was working. This indicates that the baudrate accuracy is good enough for the receiver, at least.&lt;/p&gt;
&lt;p&gt;As a test, you can try to use the crystal oscillator to increase the baudrate accuracy on the nRF side. You can do so by running the following snippet at the start of main():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
    while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Are you sending lots of data when the assert occurs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380524?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4304bd86-03d1-4d21-b860-fc1f62a5f4ca</guid><dc:creator>ijf1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I shall check and update you. Since TX is working for both 9600 and 115200, is there any chance of baud rate issue. I have verified TX with putty and hterm.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rx test point is available in the board. Could you please let me know how to validate the baudrate / activity on RX pin using a logic analyzer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ijas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380513?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 07:29:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7098ff6c-422d-4ba8-bdf1-5f9a68b8998c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi ljas,&lt;/p&gt;
&lt;p&gt;The problem does not seem to be caused by a floating input since APP_UART_COMMUNICATION_ERROR still gets raised after you have enabled pull-up on RX, but rather that the transmitter is sending an &amp;quot;invalid&amp;quot; packet to your device. If you have a logic analyzer or scope available, you could try to probe the bus lines to verify that the baudrates match on both sides.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380492?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 04:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b950ddcc-d459-4419-9782-30a4583ae207</guid><dc:creator>ijf1</dc:creator><description>&lt;p&gt;Hi Vidhar,&lt;/p&gt;
&lt;p&gt;There is an update, I would like to share.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have tried configuring the RX pin as &amp;quot;nrf_gpio_cfg_input(RX_PIN_NUMBER_NICLA,NRF_GPIO_PIN_PULLUP)&amp;quot; after calling&amp;nbsp;APP_UART_FIFO_INIT.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also tried modifying UART driver portion that configures RX pin (Fun: apply_config, File: nrfx_uart.c).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reception is not happening. Also observed that, in event handler &amp;quot;APP_UART_COMMUNICATION_ERROR&amp;quot; is getting triggered.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For testing RX functionality I tried the following methods.&lt;/p&gt;
&lt;p&gt;1.&lt;/p&gt;
&lt;p&gt;case APP_UART_DATA_READY:&lt;br /&gt; //APP_ERROR_CHECK(nrf_drv_uart_rx((uint8_t *)rx_data, LENGHT_RX));&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; printf(&amp;quot;\r\nUART DATA Ready.\r\n&amp;quot;);&lt;br /&gt; while(app_uart_get(&amp;amp;gb) != NRF_SUCCESS);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; if (gb == &amp;#39;q&amp;#39; || gb == &amp;#39;Q&amp;#39;)&lt;br /&gt; {&lt;br /&gt; printf(&amp;quot; \r\nExit!\r\n&amp;quot;);&lt;br /&gt; }&lt;br /&gt; break;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;======================================================&lt;/p&gt;
&lt;p&gt;2.&lt;/p&gt;
&lt;p&gt;while (true)&lt;br /&gt; {&lt;br /&gt; uint8_t cr;&lt;br /&gt; while (app_uart_get(&amp;amp;cr) != NRF_SUCCESS);&lt;br /&gt; while (app_uart_put(cr) != NRF_SUCCESS);&lt;/p&gt;
&lt;p&gt;if (cr == &amp;#39;q&amp;#39; || cr == &amp;#39;Q&amp;#39;)&lt;br /&gt; {&lt;br /&gt; printf(&amp;quot; \r\nExit!\r\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;while (true)&lt;br /&gt; {&lt;br /&gt; // Do nothing.&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; }&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;==========================================================&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know what am I missing. Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ijas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380398?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 13:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08955357-6df4-4ba5-87e7-b3faf41a902b</guid><dc:creator>ijf1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;The program runs with RX enabled on commenting&amp;nbsp;&lt;span&gt;&amp;quot;APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But RX does not seem to work.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried the below code to receive from PC terminal.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;while (true)&lt;br /&gt; {&lt;br /&gt; uint8_t cr;&lt;br /&gt; while (app_uart_get(&amp;amp;cr) != NRF_SUCCESS);&lt;br /&gt; while (app_uart_put(cr) != NRF_SUCCESS);&lt;/p&gt;
&lt;p&gt;if (cr == &amp;#39;q&amp;#39; || cr == &amp;#39;Q&amp;#39;)&lt;br /&gt; {&lt;br /&gt; printf(&amp;quot; \r\nExit!\r\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;while (true)&lt;br /&gt; {&lt;br /&gt; // Do nothing.&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;Also can you please clarify the expected UART RX pin state. Has it to be handled in the schematics ? I tried configuring the RX pin as input and pulldown before UART init. It does not work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ijaz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NICLA SENSE ME (nRF52832) UART RX Issue</title><link>https://devzone.nordicsemi.com/thread/380338?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 10:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c746b063-5f59-4ab7-8be6-65b919d8f16b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please try to comment the &amp;quot;APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&amp;quot; line in uart_error_handle() and see if that allows you to run the program with RX enabled.&lt;/p&gt;
&lt;p&gt;The APP_UART_COMMUNICATION_ERROR is often triggered if the UART RX pin is left floating.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>