<?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>Migration from nrfconnect 1.9.1 to 2.4.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104465/migration-from-nrfconnect-1-9-1-to-2-4-2</link><description>Hi, 
 We could solve many of the issues in migration expect the following: -- Found devicetree overlay: D:/nrf_2/v2.4.2/zephyr/samples/bluetooth/SLIMIot/boards/nrf5340dk_nrf5340_cpuapp.overlay devicetree error: &amp;#39;pinctrl-0&amp;#39; is marked as required in &amp;#39;properties</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Oct 2023 08:45:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104465/migration-from-nrfconnect-1-9-1-to-2-4-2" /><item><title>RE: Migration from nrfconnect 1.9.1 to 2.4.2</title><link>https://devzone.nordicsemi.com/thread/449305?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 08:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb5a6689-367c-4f37-b77d-b2e0a8bda7da</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems that you are missing pin control in your devicetree overlay. This was introduced in v2.0.0 of nRF Connect SDK. Please see the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/app_dev/pin_control/index.html#ug-pinctrl"&gt;Pin control&lt;/a&gt; guide for how to migrate to the new pin control mechanism.&lt;/p&gt;
&lt;p&gt;Here is an example:&lt;/p&gt;
&lt;p&gt;In v1.9.2 the I2C1 node on nRF5340 looked like this in devicetree (from &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts#L135"&gt;nrf5340_cpuapp_common.dts&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sda-pin = &amp;lt;34&amp;gt;;
	scl-pin = &amp;lt;35&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In v2.4.2 the pins are replaced with the pin control node (&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/0933a4b2949889ca924b10aff05b1093dabe7ba0/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts#L151C1-L151C1"&gt;nrf5340_cpuapp_common.dts&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the pin control node is configured in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.3.99-ncs1/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common-pinctrl.dtsi#L6"&gt;nrf5340_cpuapp_common-pinctrl.dtsi&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	i2c1_default: i2c1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 1, 2)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 1, 3)&amp;gt;;
		};
	};

	i2c1_sleep: i2c1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 1, 2)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 1, 3)&amp;gt;;
			low-power-enable;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also recommend checking out our migration guide &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/migration/migration_guide_1.x_to_2.x.html"&gt;Migration notes for nRF Connect SDK v2.0.0&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>