<?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>nRF9160DK UART setup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95214/nrf9160dk-uart-setup</link><description>Hello, 
 I am starting working on a nRF9160DK board, but I am new to this and I am a bit lost. 
 Using the Dev Academy course and example, I was able to make a small project that sends data to a CoAP server on the push of a button. I now need to setup</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Dec 2022 14:42:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95214/nrf9160dk-uart-setup" /><item><title>RE: nRF9160DK UART setup</title><link>https://devzone.nordicsemi.com/thread/402548?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 14:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4b1730c-9cc7-4e94-9aac-50fc64b11e73</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Pleasure to assist you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK UART setup</title><link>https://devzone.nordicsemi.com/thread/402491?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 07:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78656478-8463-43a9-8a04-db905d2e0a11</guid><dc:creator>Vincent44</dc:creator><description>&lt;p&gt;It&amp;#39;s working now. Thanks a lot !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK UART setup</title><link>https://devzone.nordicsemi.com/thread/402471?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 21:11:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:976dd4d8-a503-47fc-88eb-1364ae7debe8</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;Thank you for sending your project zip.&lt;/p&gt;
&lt;p&gt;After compiling the project, I got the similar error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;error: static assertion failed: &amp;quot;/soc/peripheral@40000000/uart@a000 has legacy *-pin properties defined although PINCTRL is enabled&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This means that we need to use pin control.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Pin control, also referred to as&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;pinctrl&lt;/span&gt;&lt;/code&gt;&lt;span&gt;, is a Zephyr RTOS API to standardize how SoC peripheral pins are configured. You can read more about it here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_pinctrl.html"&gt;Pinctrl&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We need to use pinctrl in overylay. Kindly replace the contents of your overlay with this one:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;uart2 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart2_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart2_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
	uart2_default: uart2_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 16)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RX, 0, 17)&amp;gt;;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And re-buid you project.&amp;nbsp;&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/pastedimage1672261796814v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK UART setup</title><link>https://devzone.nordicsemi.com/thread/402447?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 13:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f69caca3-45fd-45ec-90a9-3b7bf5785516</guid><dc:creator>Vincent44</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thank you for the quick response. Find attached my test project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3122.myApp.zip"&gt;devzone.nordicsemi.com/.../3122.myApp.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK UART setup</title><link>https://devzone.nordicsemi.com/thread/402438?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 13:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1c81a2f-d06b-46cf-83a1-22c9a9c42793</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;Can you please zip and send your complete project to build and reproduce it. Looks like related to the overylay configuration and pinctrl.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>