<?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>Unable to flash due to protection on device, required to erase flash memory</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110360/unable-to-flash-due-to-protection-on-device-required-to-erase-flash-memory</link><description>Hi, 
 
 I need to capture the data packet transmitted by ble from my phone (acting as Central), I followed the Bluetooth LE sniffer example and was able to capture the data packet. 
 However, when I try to flash my original script on VScode to my board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Apr 2024 08:32:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110360/unable-to-flash-due-to-protection-on-device-required-to-erase-flash-memory" /><item><title>RE: Unable to flash due to protection on device, required to erase flash memory</title><link>https://devzone.nordicsemi.com/thread/479626?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 08:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9b8184d-808f-43d7-b1aa-f05c60341d45</guid><dc:creator>Johan83</dc:creator><description>&lt;p&gt;ok now I got how it all works haha.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I used a different board (1 to act as the sniffer and the other to run my UART app), now it all works &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Johan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash due to protection on device, required to erase flash memory</title><link>https://devzone.nordicsemi.com/thread/479488?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 14:19:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeb679cb-4974-4afc-82bf-7d5971a7e6d1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Johan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No problem &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Johan83"]Thks for the fast reply. But wouldn&amp;#39;t that erased my other program which I have flashed into the board?[/quote]
&lt;p&gt;That is on a different board, right? When you flashed the sniffer firmware on a DK or dongle, you erased what was on that board from before in the process. So there is nothing here other than the sniffer firmware, that will have to be replaced when you want to re-use the board for something other than sniffer.&lt;/p&gt;
[quote user="Johan83"]I also need my previous code (the modified UART tutorial actually) to run togather with the sniffer.[/quote]
&lt;p&gt;Then you need two boards (one you use as a sniffer, and one you test and develop on)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash due to protection on device, required to erase flash memory</title><link>https://devzone.nordicsemi.com/thread/479482?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 14:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c172a901-82e9-483b-9667-f066a5d2c9f8</guid><dc:creator>Johan83</dc:creator><description>&lt;p&gt;Hi Thorsrud,&lt;/p&gt;
&lt;p&gt;Sry for the typo of ur name, was typing from my phone and it auto correct&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash due to protection on device, required to erase flash memory</title><link>https://devzone.nordicsemi.com/thread/479481?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 14:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b6e998e-37f2-4939-b0b4-1fa7b1708b33</guid><dc:creator>Johan83</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
&lt;p&gt;Thks for the fast reply. But wouldn&amp;#39;t that erased my other program which I have flashed into the board?&lt;/p&gt;
&lt;p&gt;I followed the le sniffer tutorial, and the first thing to do was to erase and upload sniffer firmware into the board. However, I also need my previous code (the modified UART tutorial actually) to run togather with the sniffer.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Johan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash due to protection on device, required to erase flash memory</title><link>https://devzone.nordicsemi.com/thread/479448?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 12:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a7b98e9-cb3c-4d51-8267-cbb7e7a814fa</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Johan,&lt;/p&gt;
&lt;p&gt;The sniffer firmware is based on an older SDK version that did not have support for the updated access port protection in the latest revision of the nRF52 series devices. So access port protection will alway be enabled after you have flashed the sniffer firmware. And in that case, the only way to re-program it is to perform a recover (ERASE-ALL) operation. I do not see a problem with doing that, though? You can do it either from nRF Connect for VS Code, or from the command line (for instance with &amp;quot;nrfjprog --recover&amp;quot;).&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>