<?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>UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54803/uart-unresponsive-on-custom-board</link><description>I have designed a custom board using nRF52832. As per my understanding, we can configure any GPIO pin for UART communication. However, I am not able to configure the board for this communication. 
 
 I tried declaration of tx,rx,RTS,CTS using almost all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jan 2020 13:46:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54803/uart-unresponsive-on-custom-board" /><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/229064?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 13:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44328a74-6f45-476e-bd22-e8926bfedfa6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;Ignore my comment with regards to flow control, I see now that you mention earlier that no flow control is used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can share the example code you test on the DK I will test it on my side to see where the problem might be.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/229059?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 13:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72a1a702-1d2e-4ed0-914f-1493aeec6c07</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Prasan&lt;/p&gt;
&lt;p&gt;Sorry for the slow response, for the last month or so I have been out in travel and vacation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is hardware flow control enabled?&lt;/p&gt;
&lt;p&gt;If it is communication can only occur when both the RTS and CTS lines are low.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should be possible to re-assign the UART pins on the DK, even if the default configuration uses P0.08 and P0.06.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can confirm whether or not HWFC is used I can run a test on my own to see if I spot the same issue. Could you share the main.c file of your modified example?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/226462?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 02:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f87e75be-103b-4c56-800c-cbf033338ad6</guid><dc:creator>pdpro</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;There is some weird behaviour of board I observed today. As per general assumption, I changed the pin on nRF52840 DK to p1.03 &amp;amp; p1.05 as these are unused pins to check the behaviour of UART. I checked the schematic files also and these pins are not connected for any other interfacing. Unfortunately, there is no sign of communication happening on these pins, I cross-checked by connecting logic analyser also.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I checked the schematic and found that pin P0.08 &amp;amp; P0.06 are connected through&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;FSA2466UMX&lt;/span&gt; IC which is helping to see the communication through putty. This might be the reason that changing to any other pin is not working.&lt;/p&gt;
&lt;p&gt;My custom board also doesn&amp;#39;t have any pins hardwired for this communication. Please help me understand and resolve this issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Prasan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/225517?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2019 00:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eefde60-a82b-4cf3-976a-8152eae03003</guid><dc:creator>pdpro</dc:creator><description>&lt;p&gt;I connected a US logic analyser on the pins and tried to check if something coming on bus. Unfortunately, there is no any activity on the corresponding bus. Do you think there is any major hardware issue, how custom board UART communication is tested? nRF52840 DK has UART pins hardwired, so data transmission can be directly seen on the USB port corresponding to USB cable connected to J2. I even checked on logic analyser and it is getting decoded properly. Does my custom board receives the data sent on J2 USB COM port?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/225272?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 03:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a1e3d30-fff8-4a45-b95f-3fcf622d2f05</guid><dc:creator>pdpro</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using basic UART example so there is no scope for TWI initialization.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I put TX pin in high drive mode in main program just after UART initialization like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    ...
    const app_uart_comm_params_t comm_params =
      {
          RX_PIN_NUMBER,
          TX_PIN_NUMBER,
          RTS_PIN_NUMBER,
          CTS_PIN_NUMBER,
          UART_HWFC,
          false,
#if defined (UART_PRESENT)
          NRF_UART_BAUDRATE_115200
#else
          NRF_UARTE_BAUDRATE_115200
#endif
      };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                         UART_RX_BUF_SIZE,
                         UART_TX_BUF_SIZE,
                         uart_error_handle,
                         APP_IRQ_PRIORITY_LOWEST,
                         err_code);
    nrf_gpio_cfg(TX_PIN_NUMBER, NRF_GPIO_PIN_DIR_OUTPUT, NRF_GPIO_PIN_INPUT_CONNECT, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_H0S1, NRF_GPIO_PIN_NOSENSE);

...
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also disabled flow hardware control from driver file. Still there is no sign of any communication.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I even tried to do loop back test but there is no success. Is UART communication necessary for sending ADC or any sensor data over BLE?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/222563?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 09:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a17d81f8-a45f-481b-b647-1f2342c1f660</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you made sure to remove the TWI initialization for those pins so that you don&amp;#39;t have a conflict between the TWI and UART interfaces?&lt;/p&gt;
&lt;p&gt;If you are using 2.2kOhm pull up resistors it is possible you have to configure&amp;nbsp;the TX pin to use the high drive mode, or it might not be able to pull the lines low.&amp;nbsp;&lt;br /&gt;To set an output as high drive you can run the following command after enabling the UART:&lt;/p&gt;
&lt;p&gt;&lt;em&gt; nrf_gpio_cfg(TX_PIN_NUMBER, NRF_GPIO_PIN_DIR_OUTPUT, NRF_GPIO_PIN_INPUT_CONNECT, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_H0S1, NRF_GPIO_PIN_NOSENSE);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Also, if you only have two pins available, how can you use RTS and CTS?&amp;nbsp;&lt;br /&gt;Is hardware flow control necessary, or could you disable this to reduce the IO requirement?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/222230?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 07:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0935614a-45bd-4dad-8e73-80787d42d423</guid><dc:creator>pdpro</dc:creator><description>&lt;p&gt;Attached the schematic as needed. I am trying to use pin 26 or 27 as it is having pull up resistor. Note that I have not mounted the sensor yet and thus unused pins.&lt;/p&gt;
&lt;p&gt;Let me know which pins do you think would be best for UART communication. As already explained before, I only have these two pins 26 &amp;amp; 27 where I could connect some scope for testing and there is no any other exposed pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ultimately I cannot use them for UART communication as these will be going to be used for TWI communication.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Schema.pdf"&gt;devzone.nordicsemi.com/.../Schema.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/222003?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 08:03:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a79ae33b-5908-4776-a7ad-8720a13a148b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Prasan&lt;/p&gt;
&lt;p&gt;Can you provide a schematic for your board?&lt;br /&gt;What are the UART pins connected to?&lt;/p&gt;
&lt;p&gt;Are you able to connect a scope to the pins to see what is happening on the bus?&lt;/p&gt;
&lt;p&gt;As you say there is no limit on which of the GPIO pins can be used for UART, as long as they are not used for anything else.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unresponsive on custom board</title><link>https://devzone.nordicsemi.com/thread/221969?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 02:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37c33165-ced3-4eec-a973-ab38c479afa0</guid><dc:creator>pdpro</dc:creator><description>&lt;p&gt;As per kenneth reply on my &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/54670/saadc-battery-service-customization"&gt;question&lt;/a&gt;, I tried one GPIO pin with 2.2KOhm pull-up resistor which I tried to use for RXD. Still there is no sign of communication being established properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>