<?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>[nRF Connect SDK]Assert while build after upgrading NCS2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90558/nrf-connect-sdk-assert-while-build-after-upgrading-ncs2-0</link><description>Target nRF52832(nrf52dk_nrf52832) SDK NCS v2.0.0 I could build with NCS v1.9.1 but I cannot build with NCS2.0 
 [Build log] In file included from C:/NCS200/v2.0.0/zephyr/include/zephyr/toolchain.h:50, from C:/NCS200/v2.0.0/zephyr/include/zephyr/sys/errno_private</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Aug 2022 07:03:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90558/nrf-connect-sdk-assert-while-build-after-upgrading-ncs2-0" /><item><title>RE: [nRF Connect SDK]Assert while build after upgrading NCS2.0</title><link>https://devzone.nordicsemi.com/thread/379625?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2022 07:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54599173-b0da-4c99-952b-deb3a3bda4a2</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Thank you! it works.&lt;br /&gt;&lt;br /&gt;I could update NCS 2.0 with those changes&lt;br /&gt;1. include path &amp;lt;zephyr/ &amp;gt;:&amp;nbsp;many of&amp;nbsp;paths are changed.&lt;br /&gt;2. add pinctrl changes at app.overlay&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]Assert while build after upgrading NCS2.0</title><link>https://devzone.nordicsemi.com/thread/379511?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 11:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27922e73-f221-48a0-83ef-fe7d34a28ff9</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.1/nrf/migration/migration_guide_1.x_to_2.x.html#pin-control-transition"&gt;Migration notes for nRF Connect SDK v2.0.0&lt;/a&gt;&amp;nbsp;you can see that a new pin control API was introduced in Zephyr v3.0.0. There is a guide on how to migrate to the new pin control mechanism in the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.1/zephyr/hardware/pinctrl/index.html#pinctrl-guide"&gt;Pin Control&lt;/a&gt;&amp;nbsp;documentation.&lt;/p&gt;
&lt;p&gt;In your case you need to change the pins in uart0 so that you instead have the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;921600&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	hw-flow-control;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then you must add nodes with the pin configurations:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 14)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 17)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 16)&amp;gt;;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 14)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 17)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 16)&amp;gt;;
			low-power-enable;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Make sure that pinctrl is enabled (CONFIG_PINCTRL=y). It should be enabled by default in the boards defconfig file in the Zephyr SDK in v2.0.0 (zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>