<?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>Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79191/look-like-a-hard-coded-bug-in-api-generated-in-build-zephyr-include-generated-syscalls-flash-h</link><description>Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h ? 
 -- Found BOARD.dts: zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts. 
 When the QSPI interface of nRF52840 is set to quad mode, there is a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Mar 2022 17:50:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79191/look-like-a-hard-coded-bug-in-api-generated-in-build-zephyr-include-generated-syscalls-flash-h" /><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/360092?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 17:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae73729-df05-413e-9083-623233299a47</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp; you very much.&amp;nbsp; It will be very helpful when I need to use SPI in quad mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/359903?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 03:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a87e8cb-a851-4499-a77c-febdd701bf37</guid><dc:creator>Anthony Yuan</dc:creator><description>&lt;p&gt;There is no need to write a complete new qspi_nor driver:&lt;/p&gt;
&lt;p&gt;1, Add a new jesd216_dw15_qer_type, in my case JESD216_DW15_QER_S2B1V10.&lt;/p&gt;
&lt;p&gt;2, Modify nrf_qspi_nor.c and use the jesd216_dw15_qer_type value to separate differences between DK&amp;#39;s MX flash with GD flash, such as QE bit and BP4 bit and 2 more status registers and so on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/359883?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 18:18:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c53bd8ae-b66b-47ab-a3be-b796bfe53623</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;Do you need to write your own driver ??&amp;nbsp; Just want to to know how much work is expected for my planning.&amp;nbsp; Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/359854?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 15:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffd1e494-7c85-4499-8ae5-ef9a2d430a8a</guid><dc:creator>Anthony Yuan</dc:creator><description>&lt;p&gt;Thanks for your reply. I got GD25Q32E working using Quad mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/359461?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 21:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1002838-7d4c-4668-b4ba-dcd316f70051</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;I use the SPI in Standard mode because I did not have time to fix the SPI driver in Quad mode.&amp;nbsp; However, I may need to revisit this issue when my project requires faster access speed to the flash.&amp;nbsp; Don&amp;#39;t know if the latest Zephyr has the fix or have plan to support SPI Quad mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/357393?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 12:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbd09169-fb0a-4947-b312-55c49436d287</guid><dc:creator>Anthony Yuan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I met a similar issue and raised a ticket: &lt;a href="https://devzone.nordicsemi.com/support/285652"&gt;my ticket&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Did you get your Gigadevice flash works?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Anthony Yuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/329963?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 09:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fad356e-aa6e-4172-85c7-616f25498a92</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for your input. I will forward your suggestions to our development team. Did you have any further questions, or can this case be closed?&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><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/329900?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 20:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeb56a84-5d48-4e06-a074-607ef38ac289</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;Thanks for the information for QSPI driver development.&amp;nbsp; Will look into it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, the driver API generated in&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;b&gt;/zephyr/include/generated/syscalls/flash.h&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;support the following functions&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;flash_erase&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;off_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;size_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;size&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;flash_read&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;off_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;size_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;len&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;flash_write&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;off_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;size_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;len&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;flash_get_page_info_by_idx&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;uint32_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;page_index&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;flash_pages_info&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;info&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;It would be an improvement if we can change QSPI mode to be STANDARD, DUAL or QUAD with a function&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;flash_mode_set(&lt;span&gt;const&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;,&amp;nbsp; .....&amp;nbsp; mode).&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Just my 2 cents on the improvement of Zephyr&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;JC&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/329861?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 13:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73bd4d1e-bb69-47bf-8647-5714fc5a2966</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;Hello Simonr,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;quad-enable-requirements = &amp;quot;S2B1&amp;quot;;   &amp;lt;---  It not supported.  This should be an action&lt;br /&gt; item for Zephyr to support QE bit located in any bit position in the status register.&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Only (['NONE', 'S2B1v1', 'S1B6', 'S2B7', 'S2B1v4', 'S2B1v5', 'S2B1v6']). are support now&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;As indicated in the following error message.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;devicetree error: value of property &amp;#39;quad-enable-requirements&amp;#39; on /soc/qspi@40029000/gd25lq80ceigr@0 in nrf52840dk_nrf52840.dts.pre.tmp (&amp;#39;S2B1&amp;#39;) is not in &amp;#39;enum&amp;#39; list in ........./zephyr/dts/bindings/mtd/nordic,qspi-nor.yaml (['NONE', 'S2B1v1', 'S1B6', 'S2B7', 'S2B1v4', 'S2B1v5', 'S2B1v6'])&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;quad-enable-requirements = &amp;quot;S1B6&amp;quot;;   &amp;lt;---- It is the default setting for nRF52840DK, but&lt;br /&gt;it hidden.  It need to be put in the BOARD.dts file explicitly, because many custom board using&lt;br /&gt;&lt;/span&gt;nRF52840DK as the base for hw and sw reference and Nordic will get a lot of question like getting&lt;br /&gt;88888... or 0000... in reading SPI flash if the quad-enable-requirements is not set correctly.&lt;br /&gt;&lt;br /&gt;Just my 2cents for future improvement on quad-enable-requirements&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/329045?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 13:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95632b52-f528-4429-a4a5-1aa632adc945</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;No, we don&amp;#39;t have any example projects using QSPI in NCS as of yet I&amp;#39;m afraid. You will have to implement the QSPI driver in an example (like the spi_flash example) yourself to make it able to operate in quad mode. You will need to add the following drivers:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ncs\modules\hal\nordic\nrfx\hal\nrf_qspi.h&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ncs\modules\hal\nordic\nrfx\drivers\src\nrfx_qspi.c&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ncs\modules\hal\nordic\nrfx\drivers\include\nrfx_qspi.h&lt;/strong&gt;&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><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/328905?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 01:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb92bfab-4e0c-4bc4-a0ab-088196f7be01</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;Hello Simonr,&lt;/p&gt;
&lt;p&gt;Thanks for the effort to help me.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;Trying quad-enable-requirements = &amp;quot;NONE&amp;quot;;&lt;br /&gt;&lt;br /&gt;or&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;quad-enable-requirements = &amp;quot;S2B1&amp;quot;;   /* for bit 9 */&lt;br /&gt;&lt;br /&gt;I am able to read and write to the external QSPI flash GD25LQ80C, but only in standard mode&lt;br /&gt;&lt;br /&gt;I am checking the Quad mode configuration of the QSPI interface the nRF52840.&lt;br /&gt;&lt;br /&gt;Not sure if the example in/ncs/zephyr/samples/drivers/spi_flash can operate in quad mode.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;inline&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;flash_write&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;off_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;size_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;len&lt;/span&gt;&lt;span&gt;).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; build\zephyr\include\generated\syscalls\flash.h.&amp;nbsp; &amp;nbsp;sending out&amp;nbsp; 0x02(Page Program) instead of 0x32(Quad Page Program), so it is operating in standard mode because 0x02 is command for standard mode.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is there any example in Nordic SDK using QSPI in Zephyr RTOS environment ??&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is the SPI driver API generated support Quad mode ??&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Thanks again for the solution using&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span&gt;quad-enable-requirements&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;pre&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/328699?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 06:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee58e6bc-c914-4c07-b286-2e86b5d9865b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;QE bit handling is specified by the quad-enable-requirements property of the&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/reference/devicetree/bindings/mtd/nordic%2Cqspi-nor.html#dtbinding-nordic-qspi-nor"&gt;nordic, qspi-nor binding.&lt;/a&gt;&amp;nbsp;The default value of this property is &amp;quot;S1B6&amp;quot;, and hence the driver sets bit 6 of the first status register byte to enable the Quad mode (that&amp;#39;s what is required for the MX25R64). Apart from the &amp;quot;S1B6&amp;quot; value, the QSPI NOR Flash driver also supports the &amp;quot;NONE&amp;quot; value, which prevents the driver from setting any bit in the status register to enable the Quad mode. It seems that for both&amp;nbsp;&lt;span&gt;GD25LQ80C and W25Q32FV this setting should be used, as the QE bit is non-volatile in both flash chips. Thus, the QE bit should be set once to 1 and the driver should be prevented from writing the status register, hence the following line should be added in the &amp;quot;nordic, qspi-nor&amp;quot; compatible mode:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" width="100%"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre&gt;&lt;span&gt;quad-enable-requirements = &amp;quot;NONE&amp;quot;;
&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;For reference, there is a commit that introduced the current way of handling the &lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/3e46ae1acbcfaca5bdb089c82e9f8810a85a5042"&gt;QE bit&lt;/a&gt;&amp;nbsp;(previously, the QSPI NOR Flash driver used a Kconfig option for specifying this bit). The commit message explains why this is done how it is.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/328528?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 08:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2114ab6e-2bd9-4d1e-bac5-32c6b49b2330</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Thanks for the added information. I&amp;#39;ll keep you posted on the status of this issue.&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><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/328462?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 17:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2928b3d0-6974-498f-8c02-ed6e15cdf270</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;Thanks for your help in following up with this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I checked other flash chips from Winbond and Cyress.&amp;nbsp; &amp;nbsp;It will have similar problem.&amp;nbsp; Bit 6 is sector protect and bit 9 is QE&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2021_2D00_09_2D00_07-at-10.35.59-AM.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2021_2D00_09_2D00_07-at-10.38.06-AM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/328171?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 11:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d66a7234-0326-4d76-b165-7bd6c2427b47</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the late reply but I&amp;#39;ve been out of office the last few days. This has now been reported to our developers and we&amp;#39;re looking into it. Thank you very much for the thorough post.&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><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/327864?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 19:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c484c0b-e63c-4082-8e18-3c89ddd6df81</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2021_2D00_09_2D00_02-at-12.27.44-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Bit 6 is BP4&amp;nbsp; block protect bit GD25LQ80C&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2021_2D00_09_2D00_02-at-12.32.07-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Bit 6 is QE bit for MX25R64 flash chip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Look like a hard coded bug in API generated in build\zephyr\include\generated\syscalls\flash.h</title><link>https://devzone.nordicsemi.com/thread/327862?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 18:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31a36763-9f51-404a-ab54-fe20634f430d</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;I inserted comments in the picture captured from the logic analyzer to help engineers to understand this problem.&lt;/p&gt;
&lt;p&gt;The software I used is based on&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;/ncs/zephyr/samples/drivers/spi_flash&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;You will need to use a custom board or change the external flash chip on the nRF52840DK in order to see the failure.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/HardCoded_5F00_0x40_5F00_V1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;This problem may be related to some of the cases reading 0x88 0x88,&amp;nbsp; ...... or 0x00 0x00, ...&amp;nbsp; when using zephry&lt;span&gt;ncs/zephyr/samples/drivers/spi_flash&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>