<?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>Programming external flash (QSPI) to save a file using zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126405/programming-external-flash-qspi-to-save-a-file-using-zephyr</link><description>Hi, 
 I have a custom PCB that I am programming. The PCB uses a NRF52840-QFAA chip. I want to save a file inside of the external flash chip (W25Q256JVEIQ). It is connected using QSPI. I have created the device tree, the prj.conf, the pm_static.yml, and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jan 2026 13:52:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126405/programming-external-flash-qspi-to-save-a-file-using-zephyr" /><item><title>RE: Programming external flash (QSPI) to save a file using zephyr</title><link>https://devzone.nordicsemi.com/thread/558407?ContentTypeID=1</link><pubDate>Fri, 09 Jan 2026 13:52:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc1f5ad-0cdf-4b0a-a77b-746d4885345d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Faheem,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have a nRF52840dk to test with ?&amp;nbsp;&lt;br /&gt;I attached here a sample that works with nRF52840 DK.&amp;nbsp;&lt;br /&gt;Please try to compare the dts file configuration for qspi on the DK and on your board to see if there is any potential issues.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/littlefs_5F00_qspi.zip"&gt;devzone.nordicsemi.com/.../littlefs_5F00_qspi.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note that to be able to use &amp;quot;&lt;span&gt;nrfjprog --family NRF52 --qspiXXX&amp;quot; command you would need to configure the pin correctly using --qspini file (or edit&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;QspiDefault.ini in the nrfjprog\share folder. )&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming external flash (QSPI) to save a file using zephyr</title><link>https://devzone.nordicsemi.com/thread/558216?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2026 00:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ac8530-816b-4055-98ae-8efd60df6245</guid><dc:creator>fshaikh</dc:creator><description>&lt;p&gt;I reviewed that post and ran the command &amp;quot;nrfjprog --family NRF52 --qspieraseall&amp;quot; however it failed to initiate the QSPI peripheral.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I noticed in my hardware that I am missing a pullup on the CS line. Could that be the issue with the external flash?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried adding it in software but it doesnt seem to do anything. I shouldve noticed that the datasheet states this&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;quot;4.1 Chip Select (/CS)&lt;br /&gt;The SPI Chip Select (/CS) pin enables and disables device operation. When /CS is high the device is&lt;br /&gt;deselected and the Serial Data Output (DO, or IO0, IO1, IO2, IO3) pins are at high impedance. When&lt;br /&gt;deselected, the devices power consumption will be at standby levels unless an internal erase, program or&lt;br /&gt;write status register cycle is in progress. When /CS is brought low the device will be selected, power&lt;br /&gt;consumption will increase to active levels and instructions can be written to and data read from the device.&lt;br /&gt;After power-up, /CS must transition from high to low before a new instruction will be accepted. The /CS&lt;br /&gt;input must track the VCC supply level at power-up and power-down (see &amp;ldquo;Write Protection&amp;rdquo; and Figure&lt;br /&gt;58). If needed a pull-up resistor on the /CS pin can be used to accomplish this&amp;quot;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Is there a way to configure this in the code so that CS can be turned on and off? Or is a pullup required?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming external flash (QSPI) to save a file using zephyr</title><link>https://devzone.nordicsemi.com/thread/558135?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2026 11:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01c699f8-3361-4c41-969f-f86abb659f15</guid><dc:creator>IoT-Dani</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;fshaikh&lt;/p&gt;
&lt;p&gt;Did you see the post from over two years ago?&lt;/p&gt;
&lt;p&gt;Case ID: 323060: Getting &amp;quot;Corrupted dir pair at {0x0, 0x1} ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108860/getting-corrupted-dir-pair-at-0x0-0x1-error-if-i-do-nrfjprog---eraseall-then-flash-the-application"&gt;Getting &amp;quot;Corrupted dir pair at {0x0, 0x1} ...&amp;quot; error if I do nrfjprog --eraseall then flash the application&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if that will bring you any further.&lt;/p&gt;
&lt;p&gt;Kind regards, Dani&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>