<?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>How to upload a hex file to external qspi flash by nrfjprog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44356/how-to-upload-a-hex-file-to-external-qspi-flash-by-nrfjprog</link><description>Hi Sir 
 Is it possible write a hex file to external QSPI flash by nrfjprog ? if yes, please tell me what&amp;#39;s the command ? Thank you. 
 ps, the hex file is data, not firmware.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Mar 2019 13:08:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44356/how-to-upload-a-hex-file-to-external-qspi-flash-by-nrfjprog" /><item><title>RE: How to upload a hex file to external qspi flash by nrfjprog</title><link>https://devzone.nordicsemi.com/thread/174559?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 13:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28a72702-b4d0-4dbd-8ef2-f171c65c2e50</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;If you want to write to a certain value at a specific address you can use --memwr. If however you have a hex file you can use:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --program file.hex --chiperase&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The pins that are used are the ones specified in the QspiDefault.ini file. Make sure that the address that are written to in the hex files is within the &lt;a href="https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52840/latest/memory?19#memorymap"&gt;XIP region.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to upload a hex file to external qspi flash by nrfjprog</title><link>https://devzone.nordicsemi.com/thread/174107?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 01:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db38ffb2-7285-4e5e-965b-8b4e874d5fe6</guid><dc:creator>Justin_Yeh</dc:creator><description>&lt;p&gt;Could you give me a example ? if I have a hex file. Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to upload a hex file to external qspi flash by nrfjprog</title><link>https://devzone.nordicsemi.com/thread/173950?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 11:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7c20a3e-20fc-416c-8ed1-e04faf0d7840</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, from the help section of nrfjprog tools:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; --memwr &amp;lt;addr&amp;gt; --val &amp;lt;val&amp;gt;&lt;/strong&gt; &lt;em&gt;Writes to the provided&lt;/em&gt;&lt;br /&gt;&lt;em&gt; address in memory with the help of the NVM&lt;/em&gt;&lt;br /&gt;&lt;em&gt; Controller or, if your device is equipped with a&lt;/em&gt;&lt;br /&gt;&lt;em&gt; QSPI peripheral and the address to write belongs&lt;/em&gt;&lt;br /&gt;&lt;em&gt; to the XIP region, with the help of the QSPI&lt;/em&gt;&lt;br /&gt;&lt;em&gt; peripheral to an external memory device. To&lt;/em&gt;&lt;br /&gt;&lt;em&gt; determine if an external memory device is present,&lt;/em&gt;&lt;br /&gt;&lt;em&gt; nrfjprog checks the MemSize parameter from&lt;/em&gt;&lt;br /&gt;&lt;em&gt; QspiDefault.ini file or the QSPI configuration ini&lt;/em&gt;&lt;br /&gt;&lt;em&gt; file that is given with the --qspiini option.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; The first address of the region is considered as&lt;/em&gt;&lt;br /&gt;&lt;em&gt; address 0 of the external memory device. If the&lt;/em&gt;&lt;br /&gt;&lt;em&gt; target address is flash (either internal or in the&lt;/em&gt;&lt;br /&gt;&lt;em&gt; external memory device) and not erased, the&lt;/em&gt;&lt;br /&gt;&lt;em&gt; operation will fail. This command can be combined&lt;/em&gt;&lt;br /&gt;&lt;em&gt; with the --verify operation.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>