<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88446/how-to-flash-binary-into-nrf5340-dk-external-flash-using-nrfjprog-command-line-tools</link><description>Hello 
 I am working on to flash my firmware binary into external flash by using nrfjprog commandline tools. 
 I have used below command to program and verify the external flash programming. 
 1) nrfjprog --family NRF53 --program zephyr.hex --qspichiperase</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 07 Jun 2022 11:28:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88446/how-to-flash-binary-into-nrf5340-dk-external-flash-using-nrfjprog-command-line-tools" /><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/371119?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 11:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27fbc9a8-6985-49fa-b6a0-2dc6fd331794</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am glad to hear that suggested commands work for you.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/371045?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 07:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f58bee21-8241-4a59-b276-cfe78822e1f6</guid><dc:creator>user115537</dc:creator><description>&lt;p&gt;nrfjprog --qspieraseall&lt;/p&gt;
&lt;p&gt;nrfjprog --family NRF53 --program zephyr.hex --qspichiperase --verify&lt;/p&gt;
&lt;p&gt;nrfjprog --family NRF53 --coprocessor CP_APPLICATION --program zephyr.hex --qspisectorerase --verify&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The above command works for me now, I am not sure why it was not working previously, I had change nothing in my system.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kaushik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370442?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 12:27:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f533db7-3b17-4aff-98f1-449da996c5e7</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try the following command&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --family NRF53 --program zephyr.hex --qspichiperase --chiperase --verify&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370390?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 09:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4780f9a-357b-46ca-ae5c-bc47a27dcffa</guid><dc:creator>user115537</dc:creator><description>&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4604.QspiDefault.ini"&gt;test-devzone.nordicsemi.com/.../4604.QspiDefault.ini&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/extFlash.hex"&gt;test-devzone.nordicsemi.com/.../extFlash.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For your clarification, I had re-run the command and here are the attached result. also attached the extFlash.hex file and my QspiDefault.ini file for reference, My hardware is nRF5340 DK board and External Flash was&amp;nbsp;MX25R6435FZNI - Macronix.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1654077118775v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Kaushik Parsana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370389?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 09:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04feb9fc-64e5-4b74-a209-ff20008b19db</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;In one of your previous posts, it can be seen that you ran &amp;quot;nrfjprog --eraseall&amp;quot; instead of &amp;quot;nrfjprog --qspieraseall&amp;quot; from the command line.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370386?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 09:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:971dd193-9b51-4688-a464-dc4387decf29</guid><dc:creator>user115537</dc:creator><description>&lt;p&gt;Yes, I tried for external flash programming case.&lt;br /&gt;Do we need to modify QspiDefault.ini file for set external flash configuration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370385?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 09:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56ee99bb-29dd-46ce-b2e9-2b4539673db1</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi Kaushik,&lt;br /&gt;&lt;br /&gt;Have you tried using &amp;quot;nrfjprog --qspieraseall&amp;quot; instead of &amp;quot;nrfjprog --eraseall&amp;quot; as first command?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370371?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 08:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5ecf357-f9a6-4763-8833-2369889a148c</guid><dc:creator>user115537</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I had used this(nrf-command-line-tools-10.15.4-x64) nRF Command Line Tools for installation.&lt;br /&gt;&lt;br /&gt;Version of nrfjprog is as per below snip&lt;br /&gt;&lt;br /&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1654073713384v1.png" alt=" " /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kaushik Parsana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370351?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 07:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1169e0fe-7994-43fa-9be0-60453081a667</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi Kaushik,&lt;br /&gt;&lt;br /&gt;Could you please provide information about the versions of nrfjprog and nRF Command Line Tools that yo use?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370329?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 06:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:561e4f9a-0772-4be8-861c-1ab5aa10230a</guid><dc:creator>user115537</dc:creator><description>&lt;p&gt;Hey Dejan,&lt;/p&gt;
&lt;p&gt;I had also tried the below screenshot command, For internal flash command seems working when I will change address to external flash(XIP region address) then it will give us error.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1654064579130v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Can you please tell me weather it is possible to program external flash using this nRF command line tools if yes then kindly provide me some command by that I can check erase/program/verify of external flash.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kaushik Parsana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370326?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 06:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d60354ae-845d-4234-9b3c-c3fc3488e17c</guid><dc:creator>user115537</dc:creator><description>&lt;p&gt;Hello Dejan,&lt;/p&gt;
&lt;p&gt;After &lt;strong&gt;change erase command&lt;/strong&gt; things works for me to &lt;strong&gt;program internal flash&lt;/strong&gt;, But as mention above,&amp;nbsp;&lt;strong&gt;My end goal is to check the solution for external flash production programming point of view.&lt;br /&gt;&lt;br /&gt;Can you please guide me how we can program external flash by nrfjprog command line tools?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1654063609495v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Kaushik Parsana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370265?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 14:15:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a106772a-249b-41a9-b45c-c917fa0681d1</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi Kaushik,&lt;br /&gt;&lt;br /&gt;Similar to what you have done initially, could you try again last two commands that I suggested, but split each command into two new ones (where you would use --verify in the second command). What are the results?&lt;br /&gt;&lt;br /&gt;Which version of nrfjprog and JLink do you use? You can check this using &amp;quot;nrfjprog --version&amp;quot;.&lt;br /&gt;&lt;br /&gt;Which version of nRF Command Line Tools do you use?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370251?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 13:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e0c7b51-6c37-4aae-acbd-bb590a9193cd</guid><dc:creator>user115537</dc:creator><description>&lt;p&gt;Hey Dejan&lt;/p&gt;
&lt;p&gt;Thanks for the reply, I had tried those command and here is the attached result.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1654004706193v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;My end goal is to check the solution for external flash production programming point of view.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kaushik Parsana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.</title><link>https://test-devzone.nordicsemi.com/thread/370231?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 13:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49eb0368-8be4-4f51-838f-eaf97f2945b6</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Command qspieraseall can be used for erasing external flash. &lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --qspieraseall&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Afterwards, you can proceed to programming the application. When programming, you could try adding --verify to the first line, like this&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --family NRF53 --program zephyr.hex --qspichiperase --verify&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After you erased external flash, you could also specify the core you want to use when programming&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --family NRF53 --coprocessor CP_APPLICATION --program zephyr.hex --qspisectorerase --verify&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Please let me know the results of the above-mentioned approaches.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>