<?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>west build failed with undefined node label &amp;#39;qspi&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101380/west-build-failed-with-undefined-node-label-qspi</link><description>I found the following section in nrf52840.dtsi. But I can&amp;#39;t find similar section in nrf52832.dtsi. Could I copy this section from nrf52840.dtsi to nrf52832.dtsi for solving west build error? 
 qspi: qspi@40029000 { compatible = &amp;quot;nordic,nrf-qspi&amp;quot;; #address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jul 2023 13:17:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101380/west-build-failed-with-undefined-node-label-qspi" /><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/434476?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 13:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc8ff55-2cf4-46b2-83cb-b8e3ea9b1bbf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/jesd216/README.html"&gt;JESD216 Sample&lt;/a&gt;&amp;nbsp;and see if you are able to retrieve the JDEC ID from your flash device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/434146?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 09:48:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ee1938-f6cc-4d4e-a558-f8c284146da1</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8244.W25Q32JV-RevI-05042021-Plus.pdf"&gt;devzone.nordicsemi.com/.../8244.W25Q32JV-RevI-05042021-Plus.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/434145?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 09:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b63b2df2-fb73-4006-bd28-7883c4994b40</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/minimal_5F00_log_5F00_flash_5F00_erase.zip"&gt;devzone.nordicsemi.com/.../minimal_5F00_log_5F00_flash_5F00_erase.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/434144?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 09:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eeef279-cab2-44bd-8953-c582fccc3f04</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3426.custom_5F00_nrf52832.zip"&gt;devzone.nordicsemi.com/.../3426.custom_5F00_nrf52832.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/434142?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 09:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:394b3476-dd0a-428d-bd17-e0a0cd74034c</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/flash_5F00_nor.c"&gt;devzone.nordicsemi.com/.../flash_5F00_nor.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/434141?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 09:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1491f7b-6860-4546-b4dd-d1348cb5fa52</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6708.prj.conf"&gt;devzone.nordicsemi.com/.../6708.prj.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/434139?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 09:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0470e00d-0547-4dbf-804f-326a4d411311</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I have replaced QSPI with SPI. But I encounter flash_erase() failed with error code&amp;nbsp; -19.&lt;/p&gt;
&lt;p&gt;&amp;amp;spi1 {&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;/p&gt;
&lt;p&gt;cs-gpios = &amp;lt;&amp;amp;gpio0 13 GPIO_ACTIVE_LOW&amp;gt;;&lt;br /&gt; pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;&lt;br /&gt; pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;&lt;br /&gt; pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;&lt;/p&gt;
&lt;p&gt;w25q32: w25q32jv@0 {&lt;br /&gt; compatible = &amp;quot;jedec,spi-nor&amp;quot;;&lt;br /&gt; reg = &amp;lt;0&amp;gt;;&lt;br /&gt; spi-max-frequency = &amp;lt;8000000&amp;gt;;&lt;br /&gt; jedec-id = [ef 40 16];&lt;br /&gt; size = &amp;lt;0x400000&amp;gt;;&lt;br /&gt; has-dpd;&lt;br /&gt; t-enter-dpd = &amp;lt;3500&amp;gt;;&lt;br /&gt; t-exit-dpd = &amp;lt;3500&amp;gt;;&lt;br /&gt; };&lt;br /&gt; &lt;br /&gt; w25q256: w25q256jv@0 {&lt;br /&gt; compatible = &amp;quot;jedec,spi-nor&amp;quot;;&lt;br /&gt; reg = &amp;lt;0&amp;gt;;&lt;br /&gt; spi-max-frequency = &amp;lt;8000000&amp;gt;;&lt;br /&gt; jedec-id = [ef 40 19];&lt;br /&gt; size = &amp;lt;0x2000000&amp;gt;;&lt;br /&gt; has-dpd;&lt;br /&gt; t-enter-dpd = &amp;lt;3500&amp;gt;;&lt;br /&gt; t-exit-dpd = &amp;lt;3500&amp;gt;;&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;Source code to call flash_erase() is as follows.&lt;/p&gt;
&lt;p&gt;int flashNorInit(void)&lt;br /&gt;{&lt;br /&gt; const struct device *flash_dev;&lt;br /&gt; int rc;&lt;/p&gt;
&lt;p&gt;flash_dev = DEVICE_DT_GET(DT_ALIAS(spi1flash0));&lt;/p&gt;
&lt;p&gt;if (!device_is_ready(flash_dev)) {&lt;br /&gt; printk(&amp;quot;%s: device not ready.\n&amp;quot;, flash_dev-&amp;gt;name);&lt;br /&gt; return -1;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;printk(&amp;quot;\n%s SPI flash testing\n&amp;quot;, flash_dev-&amp;gt;name);&lt;br /&gt; printk(&amp;quot;==========================\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; /* Write protection needs to be disabled before each write or&lt;br /&gt; * erase, since the flash component turns on write protection&lt;br /&gt; * automatically after completion of write and erase&lt;br /&gt; * operations.&lt;br /&gt; */&lt;br /&gt; printk (&amp;quot;\nTest 1: Flash erase\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;/* Full flash erase if SPI_FLASH_TEST_REGION_OFFSET = 0 and&lt;br /&gt; * SPI_FLASH_SECTOR_SIZE = flash size&lt;br /&gt; */&lt;br /&gt; rc = flash_erase(flash_dev, SPI_FLASH_TEST_REGION_OFFSET,&lt;br /&gt; SPI_FLASH_SECTOR_SIZE);&lt;br /&gt; if (rc != 0) {&lt;br /&gt; printk(&amp;quot;Flash erase failed! %d\n&amp;quot;, rc);&lt;br /&gt; } else {&lt;br /&gt; printk(&amp;quot;Flash erase succeeded!\n&amp;quot;);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;return 0;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;Log messages are as follows.&lt;/p&gt;
&lt;p&gt;w25q32jv@0 SPI flash testing&lt;br /&gt; 0&amp;gt; ==========================&lt;br /&gt; 0&amp;gt; &lt;br /&gt; 0&amp;gt; Test 1: Flash erase&lt;br /&gt; 0&amp;gt; spi_nor_erase() e&lt;br /&gt; 0&amp;gt; Flash erase failed! -19&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have added following configuration in prj.conf. Do I need to add other configuration?&lt;/p&gt;
&lt;p&gt;# flash&lt;br /&gt;CONFIG_FLASH=y&lt;br /&gt;CONFIG_FLASH_JESD216_API=y&lt;br /&gt;CONFIG_FLASH_PAGE_LAYOUT=y&lt;br /&gt;CONFIG_MPU_ALLOW_FLASH_WRITE=y&lt;br /&gt;CONFIG_SOC_FLASH_NRF=y&lt;br /&gt;# SPI&lt;br /&gt;CONFIG_SPI=y&lt;br /&gt;CONFIG_SPI_NOR=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/433916?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 11:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8059ff28-9ad5-4505-96f0-b3ce5df36a3a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The nRF52832 does not&amp;nbsp;include the QSPI peripheral,&amp;nbsp;so you will need to select one of&amp;nbsp;a SPI&amp;nbsp;instance instead.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/433873?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 08:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:589ed8fc-a273-45a2-8265-850be5b82c9f</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52832.dtsi"&gt;devzone.nordicsemi.com/.../nrf52832.dtsi&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/433872?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 08:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03561753-ff0c-4ca5-be0e-b2db3338b051</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52840.dtsi"&gt;devzone.nordicsemi.com/.../nrf52840.dtsi&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/433871?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 08:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5087f69-f558-4528-9adc-955eb723e000</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7103.custom_5F00_nrf52832.zip"&gt;devzone.nordicsemi.com/.../7103.custom_5F00_nrf52832.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/433870?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 08:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aecfaea0-e58e-438f-b228-5bc2b62967f4</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/minimal_5F00_log_5F00_spi_5F00_flash.zip"&gt;devzone.nordicsemi.com/.../minimal_5F00_log_5F00_spi_5F00_flash.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build failed with undefined node label 'qspi'</title><link>https://devzone.nordicsemi.com/thread/433869?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 08:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5429b0cf-076e-4f3d-83af-416b54c4de38</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Procedure to reproduce this issue is as follows.&lt;br /&gt;1. Unzip minimal_log_spi_flash.zip to samples folder.&lt;br /&gt;2. Unzip custom_nrf52832 to boards\arm folder.&lt;br /&gt;3. cd minimal_log_spi_flash&lt;br /&gt;4. west build -b custom_nrf52832&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>