<?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 failed due to protection on the device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96521/flashing-failed-due-to-protection-on-the-device</link><description>OS: Windows 10 NCS: 2.0.0 
 I am working on the Nordic DFU NCS Guide on a nRF52833 DK devzone.nordicsemi.com/.../ncs-dfu 
 After flashing/debugging several times, I started seeing the message below. I responded with &amp;quot;yes&amp;quot;. Now I am not able to &amp;quot;debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jul 2024 12:12:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96521/flashing-failed-due-to-protection-on-the-device" /><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/492059?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 12:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db71cc58-9c86-4b9e-b5d6-26f2671e4cd0</guid><dc:creator>Amarjith-ck</dc:creator><description>&lt;p&gt;&lt;span&gt;I resolved this issue by using the Jlink Flash Lite application and selecting the erase function. In both Jlink Flash Lite and Segger Embedded Studio, when attempting to connect, a popup appeared asking whether to unprotect it. I chose this option, and now the issue is resolved.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/466928?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 12:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:771c42da-e470-433e-867d-f323570f94ff</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/garrettb"&gt;garrettb&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;--program might require some erase option. You could try to either add erase option to --program or you could try to combine --program with --recover option as shown in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107045/nrfjprog---verify-fails-when-programming-just-after-a-recover-nrf5340"&gt;ticket&lt;/a&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/466807?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 15:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0f4da18-daf1-46b5-82b2-9ac374a896a8</guid><dc:creator>garrettb</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is what I did just now:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My setup:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;VS Code: 1.85.2 (user setup).&lt;/p&gt;
&lt;p&gt;nRF Connect for VS Code: v2023.11.301.&lt;/p&gt;
&lt;p&gt;NCS: 2.4.1.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Set up steps&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Create new applicaiton.&lt;/p&gt;
&lt;p&gt;Copy&amp;nbsp; sample: nrf/samples/bluetooth/peripheral uart.&lt;/p&gt;
&lt;p&gt;Add to workspace.&lt;/p&gt;
&lt;p&gt;Build configuration: nrf5340dk_nrf5340_cpuapp_ns:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;default config settings&lt;/li&gt;
&lt;li&gt;Configuration: use build system default&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Connect nRF5340 DK board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Select &lt;strong&gt;Flash&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Result = &lt;strong&gt;Fail&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building peripheral_del
west build --build-dir c:/dev/nordic/apps241/peripheral_del/build c:/dev/nordic/apps241/peripheral_del

[0/24] Performing build step for &amp;#39;tfm&amp;#39;
ninja: no work to do.
[1/5] Performing build step for &amp;#39;hci_rpmsg_subimage&amp;#39;
ninja: no work to do.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: nRF Connect: Flash: peripheral_del/build (active) 

Flashing build to 1050071243
west flash -d c:\dev\nordic\apps241\peripheral_del\build --skip-rebuild --dev-id 1050071243

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: c:\dev\nordic\apps241\peripheral_del\build\zephyr\merged_domains.hex
-- runners.nrfjprog: c:\dev\nordic\apps241\peripheral_del\build\zephyr\merged_domains.hex targets both nRF53 coprocessors; splitting it into: c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_NETWORK_merged_domains.hex and c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex
[ #################### ]  12.505s | Erase file - Done erasing                                                          
[ #################### ]   1.266s | Program file - Done programming                                                    
[ #################### ]   1.285s | Verify file - Done verifying                                                       
[ #################### ]   7.297s | Erase file - Done erasing                                                          
[error] [ Client] - Encountered error -102: Command program_file executed for 235 milliseconds with result -102        
[error] [  nRF53] - The write access failed, but no cause could be determined.
[error] [  nRF53] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.
[error] [  nRF53] - Failed while performing &amp;#39;Write&amp;#39; operation on target address 0x00000000. 
-102: An unknown error.
[error] [  nRF53] - Failed while reading device information.
[error] [ Worker] - An unknown error.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 33: nrfjprog --program &amp;#39;c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex&amp;#39; --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 1050071243

 *  The terminal process terminated with exit code: 33. 
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ran the recover script:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --recover

Recovering device. This operation mig
Erasing user code and UICR flash area
Writing image to disable ap protect.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Flash&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Result =&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Success&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Build: peripheral_del/build (active) 

Building peripheral_del
west build --build-dir c:/dev/nordic/apps241/peripheral_del/build c:/dev/nordic/apps241/peripheral_del

[0/24] Performing build step for &amp;#39;tfm&amp;#39;
ninja: no work to do.
[1/5] Performing build step for &amp;#39;hci_rpmsg_subimage&amp;#39;
ninja: no work to do.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: nRF Connect: Flash: peripheral_del/build (active) 

Flashing build to 1050071243
west flash -d c:\dev\nordic\apps241\peripheral_del\build --skip-rebuild --dev-id 1050071243

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: c:\dev\nordic\apps241\peripheral_del\build\zephyr\merged_domains.hex
-- runners.nrfjprog: c:\dev\nordic\apps241\peripheral_del\build\zephyr\merged_domains.hex targets both nRF53 coprocessors; splitting it into: c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_NETWORK_merged_domains.hex and c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex
[ #################### ]  12.571s | Erase file - Done erasing                                                          
[ #################### ]   1.263s | Program file - Done programming                                                    
[ #################### ]   1.285s | Verify file - Done verifying                                                       
[ #################### ]   7.190s | Erase file - Done erasing                                                          
[ #################### ]   1.359s | Program file - Done programming                                                    
[ #################### ]   1.208s | Verify file - Done verifying                                                       
Applying pin reset.
-- runners.nrfjprog: Board with serial number 1050071243 flashed successfully.
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Flash&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Result =&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Fail&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
-- runners.nrfjprog: Flashing file: c:\dev\nordic\apps241\peripheral_del\build\zephyr\merged_domains.hex
-- runners.nrfjprog: c:\dev\nordic\apps241\peripheral_del\build\zephyr\merged_domains.hex targets both nRF53 coprocessors; splitting it into: c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_NETWORK_merged_domains.hex and c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex
[ #################### ]  12.533s | Erase file - Done erasing                                                          
[ #################### ]   1.264s | Program file - Done programming                                                    
[ #################### ]   1.286s | Verify file - Done verifying                                                       
[ #################### ]   7.279s | Erase file - Done erasing                                                          
[error] [ Client] - Encountered error -102: Command program_file executed for 204 milliseconds with result -102        
[error] [  nRF53] - The write access failed, but no cause could be determined.
[error] [  nRF53] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.
[error] [  nRF53] - Failed while performing &amp;#39;Write&amp;#39; operation on target address 0x00000000. 
-102: An unknown error.
[error] [  nRF53] - Failed while reading device information.
[error] [ Worker] - An unknown error.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 33: nrfjprog --program &amp;#39;c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex&amp;#39; --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 1050071243

 *  The terminal process terminated with exit code: 33. 
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ran the recover script:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --recover

Recovering device. This operation mig
Erasing user code and UICR flash area
Writing image to disable ap protect.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Flash&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Result =&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Success&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I repeated these steps - and it failed every second time, etc.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;At one stage, I was prompted&amp;nbsp;to recover the device and reflash.&lt;/p&gt;
&lt;p&gt;If I select &lt;strong&gt;Yes&lt;/strong&gt; - the flash succeeds but fails next time.&lt;/p&gt;
&lt;p&gt;However, if I select &amp;quot;Always in this session&amp;quot;, then it succeeds for the next three flashes (I didn&amp;#39;t try any more).&lt;/p&gt;
&lt;p&gt;However, when I then select Debug, instead of Flash, it fails again:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Flash: peripheral_del/build (active) 

Flashing build to 1050071243
west flash -d c:\dev\nordic\apps241\peripheral_del\build --skip-rebuild --dev-id 1050071243

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: c:\dev\nordic\apps241\peripheral_del\build\zephyr\merged_domains.hex
-- runners.nrfjprog: c:\dev\nordic\apps241\peripheral_del\build\zephyr\merged_domains.hex targets both nRF53 coprocessors; splitting it into: c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_NETWORK_merged_domains.hex and c:\dev\nordic\apps241\peripheral_del\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex
[ #################### ]  11.502s | Erase file - Done erasing                                                          
[ #################### ]   1.254s | Program file - Done programming                                                    
[ #################### ]   1.280s | Verify file - Done verifying                                                       
[ #################### ]   5.929s | Erase file - Done erasing                                                          
[error] [  nRF53] - The write access failed, but no cause could be determined.                                         
[error] [  nRF53] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.
[error] [  nRF53] - Failed while performing &amp;#39;Write&amp;#39; operation on target address 0x00000000. 
-102: An unknown error.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/466749?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 12:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e56eb4-f861-4fbe-8ffc-e6487bbd3762</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/garrettb"&gt;garrettb&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Could you provide all required steps for reproducing the issue?&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/466634?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 22:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c622fc-56ba-4d0b-83d3-c0a5e8050ed4</guid><dc:creator>garrettb</dc:creator><description>&lt;p&gt;I have a similar issue.&lt;/p&gt;
&lt;p&gt;I am working with an nRF5340 DK (PCA10095 - 2.0.0 - 2022.4).&lt;/p&gt;
&lt;p&gt;I have to use &amp;quot;nrfjprog --recover&amp;quot; every 2nd time. In other words, it fails the first flash, then after the recover, it usually flashes successfully, once. Then next time it will fail.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And trying to use Debug is almost impossible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/465315?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 13:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a273fef-f237-4b75-a787-36a91cf67935</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Garvit,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thank you for providing required information.&lt;br /&gt;&lt;br /&gt;I am not able to reproduce your issue.&lt;br /&gt;&lt;br /&gt;Have you tried to recover your boards before flashing?&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/465216?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 05:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efe00127-430b-4211-a650-b27eb3365e14</guid><dc:creator>Garvit Periwal</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Apologies for late response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF Command Line Tools - 10.23.4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; nRF Connect for Desktop - 4.3&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; and VS Code - 1.85.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, I tried on 3rd board as well after reinstalling the software, same issue still persists&amp;nbsp;when I repeated the steps mentioned in previous reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Garvit&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463928?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 09:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee929a18-5ef8-4b58-a356-1c7c83e74f42</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Garvit,&lt;br /&gt;&lt;br /&gt;Which versions of nRF Command Line Tools, nRF Connect for Desktop, and VS Code do you use?&lt;br /&gt;&lt;br /&gt;What happens with your third nrf5340-dk board? Do you see the same &amp;quot;Flashing failed&amp;quot; problem with it or not?&lt;br /&gt;&lt;br /&gt;Please let me know the result after you reinstall/update all required tools.&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463896?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 05:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c76fcd19-3918-45df-afb3-fddc5d17928e</guid><dc:creator>Garvit Periwal</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;After installing the nrf command line tools, nrf connect for desktop, visual studio code, I went to create a new application and clicked on copy a sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705036439572v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;searched for blinky example and clicked on first blinky sample&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705036560464v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;After this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705036623159v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;Now I received this error, highlighted in yellow -&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705036681568v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;In terminal added the an exception as suggested in output window,&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705036790275v5.png" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;After that created a build configuration with following inputs-&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705036875256v6.png" /&gt;&lt;/p&gt;
&lt;p&gt;After that tried flashing the board and received the error as mentioned in original question asked,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705036950001v7.png" /&gt;&lt;/p&gt;
&lt;p&gt;I have tried pressing yes and always in this session option but I end up on same error again and again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I have 3 boards of same nrf5340 dk , Tried flashing 2 boards with this method and I am receiving this same error on both. At start, I believed this might be happening due to no write access on external disk on company provided laptop but I tried on my personal laptop and enabled the access on company laptop as well but still facing same issue.&lt;/p&gt;
&lt;p&gt;Please ignore the warnings in output terminal in above images regarding the nrf command line tool, I am in process of reinstalling all the software&amp;#39;s, I know there is very less probability that the error would resolve by doing this but still worth a try.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Garvit&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463680?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 09:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:524e5ae6-c69e-487e-b438-2851c78c8f30</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Garvit,&lt;br /&gt;&lt;br /&gt;Thank you. This is exactly what I asked for.&lt;br /&gt;&lt;br /&gt;Could you provide steps necessary for reproducing the issue?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463660?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 06:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595f3948-b896-458c-9287-d63edf61583f</guid><dc:creator>Garvit Periwal</dc:creator><description>&lt;p&gt;Number is - PCA10095 2.0.2 2023.22 1050088170&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Apologies, if I am missing basic points here, I am an absolute beginner in this field.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6433.MicrosoftTeams_2D00_image-_2800_2_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Garvit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463569?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 13:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccd24be6-d517-43ca-83ba-2c610062d2b5</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Garvit,&lt;br /&gt;&lt;br /&gt;I am sorry for not being clear enough. The placing of the label might differ from one version to another. I asked you for the version of the DK which you can find on the white sticker on the front side of the board.&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463528?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 12:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0543342-49e9-413d-ae51-e5833b6ee0d2</guid><dc:creator>Garvit Periwal</dc:creator><description>&lt;p&gt;Number Displayed is&amp;nbsp; - N5340QKAAD02240CC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463521?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 12:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:127a5cb9-8a8b-4c32-9d0e-abb65db7b1e7</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Garvit,&lt;br /&gt;&lt;br /&gt;Thank you for providing required information.&lt;br /&gt;&lt;br /&gt;NCS is abbreviation for nRF Connect SDK.&lt;br /&gt;&lt;br /&gt;You can find board version number on the label marked red in the picture below.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1704887920928v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Please provide information for reproducing your issue.&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463509?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 11:04:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60be3b0c-e919-4841-9aed-4daee2256032</guid><dc:creator>Garvit Periwal</dc:creator><description>&lt;p&gt;Hi Dejans,&lt;/p&gt;
&lt;p&gt;I am working on windows 10 OS&lt;/p&gt;
&lt;p&gt;VS Code version - 1.85.1&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am new to Nordic development environment, Is NCS short form for nRF Connect SDK ?&lt;/p&gt;
&lt;p&gt;nRF Connect SDK version - v2.5.0&lt;/p&gt;
&lt;p&gt;Apologies, I don&amp;#39;t see any other number on the boards - nRF5340-DK (If required I can upload a picture for same)&lt;/p&gt;
&lt;p&gt;Purchase link for boards -&amp;nbsp;&lt;a href="https://www.mouser.in/ProductDetail/Nordic-Semiconductor/NRF5340-DK?qs=T94vaHKWudSvpk%2Fi5MmNkA%3D%3D&amp;amp;_gl=1*4cupak*_ga*NDAxNzI0LjE2OTUzNTkxMjc.*_ga_15W4STQT4T*MTcwNDg2OTE2My45LjEuMTcwNDg2OTE2My42MC4wLjA.*_ga_1KQLCYKRX3*MTY5NTgyMjQ0My4zLjAuMTY5NTgyMjQ0My42MC4wLjA."&gt;Link&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am trying to flash the board with blinky example as of now without any modifications in the sample code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Garvit&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463473?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 09:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b032ec6-8b20-40c4-9e58-e6957a384802</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Garvit,&lt;br /&gt;&lt;br /&gt;Which operating system, and versions of nrf5340-dk board, NCS and VS Code do you use?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you please provide all necessary steps for reproducing your issue?&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/463459?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 07:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e53103fb-2eb9-4591-85ec-e9b8d665026a</guid><dc:creator>Garvit Periwal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Was this issue resolved?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am facing same issue in nrf5340 dk&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Garvit&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/419902?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 09:13:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efe449e4-f670-4a16-810d-14695d479fe7</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="bryano"]I have contacted my local FAE.&amp;nbsp; I am planning to hand one of my nRF52833 DKs to him so he can do some direct failure analysis, which obviously you can not do.[/quote]
&lt;p&gt;Thank you for this information.&amp;nbsp;&lt;/p&gt;
[quote user="bryano"]I will definitely send an update when I have more information.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Thank you. I hope that the issue with your boards will be resolved soon.&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/419778?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 14:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a510aaa7-2b51-4c70-858f-b3aa0f641ee9</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;dejans,&lt;/p&gt;
&lt;p&gt;Thank you for your support.&amp;nbsp; I have contacted my local FAE.&amp;nbsp; I am planning to hand one of my nRF52833 DKs to him so he can do some direct failure analysis, which obviously you can not do.&amp;nbsp; I will definitely send an update when I have more information.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/419557?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 08:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80e73b36-c32b-4809-9398-8f00e58b917c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It is unfortunate that your issue has not yet been resolved. Since I was not able to reproduce the issue, you could contact your local FAE for assistance regarding your specific boards.&amp;nbsp;I would appreciate it if you could afterwards provide an update regarding your issue.&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/419401?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 16:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ced97b08-eccf-4685-ab26-47d7ea02f241</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;No, it was never resolved.&amp;nbsp; I have been side tracked with other issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I have updated to the latest tools and still have the issue.&amp;nbsp; Even if I try to debug the most basic of applications (hello world) I can not go into debug mode.&lt;/p&gt;
&lt;p&gt;VS Code:&amp;nbsp; 1.77.1&lt;br /&gt;NCS: 2.3.0&lt;br /&gt;OS: Windows 10&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I believe there is something wrong with the DK or the interaction with VS Code.&lt;br /&gt;&lt;br /&gt;I still want to find the solution.&amp;nbsp; I am going to reach out to my local FAE&amp;nbsp;(we live in the same town) and give him one of the failing boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/419335?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 02:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce164b64-8220-4cd7-b19e-38421dd03acb</guid><dc:creator>rm_89</dc:creator><description>&lt;p&gt;Hey Bryan,&lt;/p&gt;
&lt;p&gt;Did you ever resolve this issue? I am now experiencing this same problem with an NRF52833DK V1.1.0, while my older V1.0.1 board is working fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/416997?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 09:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2614494-6c11-4283-bd48-bdc07133acf1</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="bryano"]Did either of your boards exhibit the behavior I am seeing?[/quote]
&lt;p&gt;No, my boards did not exhibit the same behavior as yours. I have tested again with nRF52833-DK v1.1.0 (NCS v2.0.0). I have flashed multiple times but I could not reproduce your issue.&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: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/416846?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 14:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cce24bbb-b6b0-4b29-ab89-4abd1bf535cb</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;No problem.&amp;nbsp; I am still not quite clear.&amp;nbsp; Did either of your boards exhibit the behavior I am seeing?&lt;br /&gt;&lt;br /&gt;As I mentioned, it seems to be random.&amp;nbsp; I had one board exhibit the behavior the very first time and others it took numerous flashing before it starting doing it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing failed due to protection on the device</title><link>https://devzone.nordicsemi.com/thread/416567?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 13:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6713e944-a09a-4816-969b-bb89b56ee30e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="bryano"] Just to be clear, you &lt;strong&gt;were&lt;/strong&gt; able to reproduce the error on the nRF52-DK?[/quote]
&lt;p&gt;Thank you for pointing this out and asking for clarification. I made a typing mistake. I am sorry for the confusion. Both boards I was testing on were nRF52833-DK v1.1.0 and not nRF52-DK v1.1.0.&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>