<?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>Zephyr v2.0.0 direct_test_mode build error custom nRF528420 board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90233/zephyr-v2-0-0-direct_test_mode-build-error-custom-nrf528420-board</link><description>We have a board that is to be certified by a Chinese test lab, so I need to create an image based on the direct_test_mode sample. 
 In Zephyr v2.0.0 I created a custom board based on the nrf52840_qiaa.dtsi. 
 When first building the project I got an error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jul 2022 11:50:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90233/zephyr-v2-0-0-direct_test_mode-build-error-custom-nrf528420-board" /><item><title>RE: Zephyr v2.0.0 direct_test_mode build error custom nRF528420 board</title><link>https://devzone.nordicsemi.com/thread/378075?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 11:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea8a84c9-c34b-4515-b6d6-1ad124342caf</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;Thank you. With your suggested changes everything compiled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Zephyr is an ever changing target, I have to say. It seems every version they changed the power management or redid something entirely.&lt;/p&gt;
&lt;p&gt;I did not think of the serial channel which of course the project uses.&lt;/p&gt;
&lt;p&gt;The make error printed did not give me any useful information.&lt;/p&gt;
&lt;p&gt;Thank you for your quick response.&lt;/p&gt;
&lt;p&gt;The bug report system should allow all project files to be uploaded.&lt;/p&gt;
&lt;p&gt;Thanks David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr v2.0.0 direct_test_mode build error custom nRF528420 board</title><link>https://devzone.nordicsemi.com/thread/378007?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 07:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00cfab5f-8d42-430e-9150-440b60b84413</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;The error was due to UART.&lt;/p&gt;
&lt;p&gt;First of all you need to add&amp;nbsp;CONFIG_SERIAL=y to&amp;nbsp;ami_ms88sf2_defconfig in order to enable serial drivers.&lt;/p&gt;
&lt;p&gt;Secondly, the Zephyr version used in nRF Connect SDK v2.0.0 introduced pin control, as you can see in the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/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;. There is a pin control guide available in the Zephyr documentation here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/hardware/pinctrl/index.html#pinctrl-guide"&gt;Pin control&lt;/a&gt;, but what you need to do is to add&amp;nbsp;CONFIG_PINCTRL=y to&amp;nbsp;ami_ms88sf2_defconfig and then make the following changes in&amp;nbsp;ami_ms88sf2.dts:&lt;/p&gt;
&lt;p&gt;Change uart0 to this:&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; 19200 &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;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then add pinctrl, for example at the bottom of the file, like this:&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, 6)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 8)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
			bias-pull-up;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 8)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
			low-power-enable;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is only for UART0. If you want to use UART1 as well you must also add that to pinctrl. Since you have not set any pins for UART1 I assume you do not want to use it. In that case you can set the status to &amp;quot;disabled&amp;quot; instead of &amp;quot;okay&amp;quot;, because if not you will get errors unless you fix the pinctrl.&lt;/p&gt;
&lt;p&gt;Since you are using nRF52840 you can find how pinctrl is set for other peripherals in&amp;nbsp;zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840-pinctrl.dtsi.&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><item><title>RE: Zephyr v2.0.0 direct_test_mode build error custom nRF528420 board</title><link>https://devzone.nordicsemi.com/thread/377970?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 03:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cf44a7d-7c34-4bd7-ad02-25122f51ffcb</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;Sorry yesterday the support site was down. I am uploading again the files. You should be able to reproduce the problem. Now it will not let me upload the file types so i will upload the zipped project...&lt;/p&gt;
&lt;p&gt;I left the build directory since maybe it has a hint of the problem.&lt;/p&gt;
&lt;p&gt;Thanks David&lt;/p&gt;
&lt;p&gt;I left the build&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/MS88SF2_5F00_RadioDirect.zip"&gt;devzone.nordicsemi.com/.../MS88SF2_5F00_RadioDirect.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>