<?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 unable to confiogure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114927/uart-unable-to-confiogure</link><description>Please refer screen shot attach I am able to configure uart0 but not able to configure uart1,2,3 
 i am receiving multiple errors while same code is working fine for uart0. 
 I am using zephyre OS , 
 i am using latest nrf Connect SDK 2.7.0 
 H/W nrf52840dk</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Sep 2024 09:38:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114927/uart-unable-to-confiogure" /><item><title>RE: UART unable to confiogure</title><link>https://devzone.nordicsemi.com/thread/503708?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 09:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:817e6ca1-350f-407b-8f12-5537e2070e43</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear that you got it working!&lt;/p&gt;
&lt;p&gt;If you want to change the pins, you can ask the AI, in the lower right corner.&lt;/p&gt;
&lt;p&gt;For instance &amp;quot;show me how to change pins on uart1&amp;quot;, and it&amp;#39;ll give you a device tree overlay showing something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
   uart1_default_alt: uart1_default_alt {
      group1 {
         psels = &amp;lt;NRF_PSEL(UART_TX, 0, 14)&amp;gt;,
                 &amp;lt;NRF_PSEL(UART_RX, 0, 16)&amp;gt;;
      };
   };
   /* required if CONFIG_PM_DEVICE=y */
   uart1_sleep_alt: uart1_sleep_alt {
      group1 {
         psels = &amp;lt;NRF_PSEL(UART_TX, 0, 14)&amp;gt;,
                 &amp;lt;NRF_PSEL(UART_RX, 0, 16)&amp;gt;;
         low-power-enable;
      };
   };
};

&amp;amp;uart1 {
  pinctrl-0 = &amp;lt;&amp;amp;uart1_default_alt&amp;gt;;
  /* if sleep state is not used, use /delete-property/ pinctrl-1; and
   * skip the &amp;quot;sleep&amp;quot; entry.
   */
  pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep_alt&amp;gt;;
  pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Change this to the GPIO that you wanted.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unable to confiogure</title><link>https://devzone.nordicsemi.com/thread/503705?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 09:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ce4129b-d72b-4d97-836d-4ae539904c4d</guid><dc:creator>Nordic_Swapnil</dc:creator><description>&lt;p&gt;YES !&amp;nbsp; i did the same thanks for support,&lt;br /&gt;I observed that it is working for P0.06,P0.08 and P1.01,P1.02&lt;/p&gt;
&lt;p&gt;latest 2.7 version sdk dont suggest pins, cant just random choose pins to configure&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unable to confiogure</title><link>https://devzone.nordicsemi.com/thread/503550?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2024 10:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8d4bb21-5ba9-46ba-9118-817ba3ffbc10</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Nordic_Swapnil"]But I am still not getting output string, i had configured settings same as uart0 for uart1.[/quote]
&lt;p&gt;You cannot enable both uart1 and uart0 on the same pins. one will need to be enabled on other pins, and you have to connect a external uart adapter to be able to communicate.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unable to confiogure</title><link>https://devzone.nordicsemi.com/thread/503500?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2024 05:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76c71105-8827-49cd-bae0-b56676eafe41</guid><dc:creator>Nordic_Swapnil</dc:creator><description>&lt;p&gt;heyy Hakon,&lt;br /&gt;I tried this step it had only eliminated the error and program is compiled successfully&lt;br /&gt;But I am still not getting output string, i had configured settings same as uart0 for uart1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART unable to confiogure</title><link>https://devzone.nordicsemi.com/thread/503449?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2024 16:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6e39318-d61c-4850-a1db-e85d6d9f9354</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRF52840 has two UARTE instances:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uarte.html#d1676e397"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uarte.html#d1676e397&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The newer Cortex M33 based devices, such as nRF5340 and nRF91-series, they have up to 4 UART instances, which are shared with SPI and TWI.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to use uart1, you have to enable it in device tree:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1 {
    status = &amp;quot;okay&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>