<?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>Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123044/write-binary-file-to-external-qspi-flash-with-nrfjprog</link><description>Hi, 
 We need to write binary content from a binary file (.hex or .bin) to a specific area of the external flash (QSPI). 
 According to this topic: , this is similar to our issue. 
 I have a file called zephyr.recovery.bin. 
 I want to write the content</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Aug 2025 07:51:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123044/write-binary-file-to-external-qspi-flash-with-nrfjprog" /><item><title>RE: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/546716?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 07:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1525b3ec-6576-4b43-b3bd-e51c1d8d1c5d</guid><dc:creator>Quentin LACOMBE</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for your answer, we can&amp;#39;t reproduce the issue again, it seem to work correctly with 32 bit mode and we can write our images as expected.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks for your help !&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Quentin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/544761?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 11:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a83fece8-0613-4e4f-9fbb-b6ed8cff6706</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Quentin,&lt;/p&gt;
&lt;p&gt;We cannot reproduce the issue on our end, tested with nrfutil version 8.1.0 and nrfutil-device version 2.12.6. It should work with most recent versions of nRF Util though.&lt;/p&gt;
&lt;p&gt;Could you try with&amp;nbsp;&lt;span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;quot;rx_delay&amp;quot; : 7&lt;/span&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If that doesn&amp;#39;t work, could you make an attempt with &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;--log-level=trace&lt;/span&gt;, and share with us the resulting log files found in&amp;nbsp;&lt;em&gt;&amp;lt;USERHOME&amp;gt;/.nrfutil/logs&lt;/em&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hieu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/544383?ContentTypeID=1</link><pubDate>Sat, 02 Aug 2025 09:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d252e2be-91af-4c4c-9af8-d986e2c279bd</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Quentin,&lt;/p&gt;
&lt;p&gt;Simon is out of office, and I will continue helping you. I have relayed your observation to our nRF Util team. We will investigate and follow-up with you next week.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/543943?ContentTypeID=1</link><pubDate>Tue, 29 Jul 2025 12:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb920bc6-8da4-48ab-8a0c-411e8f50bf3a</guid><dc:creator>Quentin LACOMBE</dc:creator><description>&lt;p&gt;Thanks for your answer. We try to use the nrfutil commands. When we write our file at the beginning of the flash memory (0x10000000) and use the 24bit adresses mode (&lt;span&gt;&amp;quot;address_mode&amp;quot;&lt;/span&gt;&lt;span&gt;:&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;MODE24BIT&amp;quot;)&lt;/span&gt;, it work.&lt;br /&gt;&lt;br /&gt; When we try to write the file at the end of the flash (&lt;span&gt;0x11E98000), we need to switch to 32 bit adresses mode&amp;quot;address_mode&amp;quot;:&amp;nbsp;&amp;quot;MODE32BIT&amp;quot;, and now it doesn&amp;#39;t work. Our address is outside the 24 bit address range.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We also try to write at the beginning of the flash (0x10000000) like previously but with 32 bit adresses mode and it doesn&amp;#39;t work too. Is there an other thing to do than&amp;nbsp;set the &amp;quot;address_mode&amp;quot; parameter to &amp;quot;MODE32BIT&amp;quot;, if we want to use 32 bit adresses mode ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is our config file used with the nrfutil command:&amp;nbsp;&lt;/span&gt;&lt;/p&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;span&gt;&amp;quot;firmware_config&amp;quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;peripheral&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&amp;quot;QSPI&amp;quot;&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;span&gt;&amp;quot;pins&amp;quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;sck&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;17&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;csn&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;18&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;io0&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;13&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;io1&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;14&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;io2&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;15&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;io3&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;16&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;span&gt;&amp;quot;flash_size&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;33554432&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;sck_frequency&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;8000000&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;address_mode&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&amp;quot;MODE24BIT&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;readoc&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&amp;quot;READ4IO&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;writeoc&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&amp;quot;PP4IO&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;pp_size&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&amp;quot;PPSIZE256&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;sck_delay&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;rx_delay&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;page_size&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;4096&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 style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/543680?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 06:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf58ff64-0815-45df-be37-bd7b6f499b89</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Quentin&lt;/p&gt;
&lt;p&gt;Sorry about the late reply, but I haven&amp;#39;t been able to get to this one due to the staff shortage over the summer. To write to external memory, check out the nrfutil commands that does so available &lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-device/guides/programming_external_memory.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Your external flash size seems fine.&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: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/542964?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 08:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef08a2b6-0145-4deb-9e8d-50ad464d4fc0</guid><dc:creator>Quentin LACOMBE</dc:creator><description>&lt;p data-start="144" data-end="290"&gt;The size of the external flash is 32 megabytes. Our file contains raw data, and we don&amp;#39;t want to execute the content stored in the external flash.&lt;/p&gt;
&lt;p data-start="296" data-end="375"&gt;The XIP area is only necessary when executing code from external memory, right?&lt;/p&gt;
&lt;p data-start="381" data-end="576"&gt;Currently, we can write our file from the firmware with few tricks, but to simplify our process, we would like to be able to write to the external memory using the debugger. I just want to know if it&amp;#39;s possible.&lt;/p&gt;
&lt;p data-start="381" data-end="576"&gt;&lt;/p&gt;
&lt;p data-start="381" data-end="576"&gt;Thanks,&lt;/p&gt;
&lt;p data-start="381" data-end="576"&gt;&lt;/p&gt;
&lt;p data-start="381" data-end="576"&gt;Quentin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/542952?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 06:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c249e81f-b3e5-450d-8550-020bd7f1dc9e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;And what&amp;#39;s the size of the external flash you&amp;#39;re using? This sounds like a very large file to be honest, so please make sure that your XIP area covers more than 512 kB.&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: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/542860?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 12:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f4be081-4417-4468-9f3d-dda7ee308297</guid><dc:creator>Quentin LACOMBE</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your answer, the size of the file I want to write is&amp;nbsp;512 583 bytes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Quentin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write binary file to external QSPI flash with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/542850?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 10:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a44e70a1-f9ea-4a75-a7c7-addc63162457</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How big is this file exactly? Seems like the XIP area of your application isn&amp;#39;t large enough to fit the entire zephyr.recovery file you&amp;#39;re trying to put into the QSPI flash.&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></channel></rss>