<?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>nrf5340dk - undefined reference to `__device_dts_ord_119&amp;#39; when device is uart1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91764/nrf5340dk---undefined-reference-to-__device_dts_ord_119-when-device-is-uart1</link><description>I have trouble compiling when using the uart1 device on nrf5340dk with ncs 2.0.2. 
 I took the uart example program from Developer Academy. It compiles fine with the original uart0 driver. 
 
 but when I change it to: 
 
 I get this error when compiling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Sep 2022 12:11:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91764/nrf5340dk---undefined-reference-to-__device_dts_ord_119-when-device-is-uart1" /><item><title>RE: nrf5340dk - undefined reference to `__device_dts_ord_119' when device is uart1</title><link>https://devzone.nordicsemi.com/thread/385265?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d3ae38-f8d1-4663-a360-4707e3781035</guid><dc:creator>Jan_Erik</dc:creator><description>&lt;p&gt;Thank you, Simon - that solves it.&lt;/p&gt;
&lt;p&gt;I had checked the device tree before to figure out which pins uart1 was wired to by default but missed the &amp;#39;status = disabled&amp;#39; line.&lt;/p&gt;
&lt;p&gt;Hopefully the wizards who are developing zephyr will find a way to include more helpful error messages for device tree problems.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jan Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340dk - undefined reference to `__device_dts_ord_119' when device is uart1</title><link>https://devzone.nordicsemi.com/thread/385220?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 09:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61203a5f-64e0-4a8c-8af5-c52ed59c040c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try to add the following to an overlay named nrf5340dk_nrf5340_cpuapp.overlay&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;When you&amp;#39;ve done that, check the file&amp;nbsp;&amp;lt;sample&amp;gt;\build\zephyr\zephyr.dts and search for &amp;quot;uart1&amp;quot; to see if it has taken effect.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>