<?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>Flashing the hex file using nrfjprog on same location in Flash getting wrong data issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83765/flashing-the-hex-file-using-nrfjprog-on-same-location-in-flash-getting-wrong-data-issue</link><description>Hi, 
 
 I am flashing Blinky led hex file on the flash at 0x5E000 location. 
 And again if i try to flash the different Blinky hex file at the same location. it wasn&amp;#39;t working. 
 And when i tried to read the data through nrfjprog --memrd then it shows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jan 2022 04:58:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83765/flashing-the-hex-file-using-nrfjprog-on-same-location-in-flash-getting-wrong-data-issue" /><item><title>RE: Flashing the hex file using nrfjprog on same location in Flash getting wrong data issue</title><link>https://devzone.nordicsemi.com/thread/348405?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 04:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33b8c7b3-6e1f-4af0-bbca-6f9b274d6046</guid><dc:creator>R_S</dc:creator><description>&lt;p&gt;Thanks Elfving.&lt;/p&gt;
&lt;p&gt;After Erasing that particular flash area i am able to program my new hex file at same location.&lt;/p&gt;
&lt;p&gt;&lt;span style="background:#EBEFF2;"&gt;nrfjprog --family nrf52 --erasepage 0x5E000-0x62000&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Rohit&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing the hex file using nrfjprog on same location in Flash getting wrong data issue</title><link>https://devzone.nordicsemi.com/thread/348314?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a43a1a-2cae-46c5-b276-e6cc76640b17</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Rohit!&lt;/p&gt;
&lt;p&gt;If the two hex files are different then they can overwrite each other in different ways causing them not to work. Even though you write the hex file in the same place in the flash, they wont necessarily overwrite each other completely if there are differences between them.&lt;/p&gt;
&lt;p&gt;You will have to erase first.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>