<?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 erase application only without erasing uicr with nrfjprog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78468/how-to-erase-application-only-without-erasing-uicr-with-nrfjprog</link><description>Excuse me： 
 The chip can individually erase the application without erasing the uicr with nrfjprog？Which nrfjprog command is used to erase the application only，I want to program the .hex file only without erasing uicr.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Aug 2021 08:29:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78468/how-to-erase-application-only-without-erasing-uicr-with-nrfjprog" /><item><title>RE: how to erase application only without erasing uicr with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/324605?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 08:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f9467da-2ebc-47a2-9472-26b5ca82d600</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The hex has to cover the same area as the previous one, as sectorerase will only erase the area of the new hex. If it doesn&amp;#39;t cover the area, and you try to program a new hex, nrfjprog will sense that the area is already written to and will return an error.&lt;/p&gt;
&lt;p&gt;Alternatively, you can try to use nrjfprog --erasepage and manually erase the application and then use nrfjprog --program to flash the new application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to erase application only without erasing uicr with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/324565?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 02:10:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80fb981c-90d3-4b63-adc1-f9a9362681bb</guid><dc:creator>helen</dc:creator><description>&lt;p&gt;After I only erased the application, I failed to&amp;nbsp;program the new&amp;nbsp;.hex.I want to update the .hex without removing the previous uicr.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1628734175_2800_1_2900_.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to erase application only without erasing uicr with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/324456?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 11:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa1a5815-2e31-4c3d-9c10-e58b4e0f55be</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Use the --sectorerase option. See nrfjprog --help to get a complete list over all of the commands and sub-commands.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_nrfjprogexe_reference.html?cp=10_1_3_0"&gt;&lt;em&gt;&amp;nbsp;If&amp;nbsp;&lt;code&gt;--sectorerase&lt;/code&gt;&amp;nbsp;is given, only the targeted non-volatile memory pages, excluding UICR, is erased&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>