<?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>nRF52832 revision 3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81769/nrf52832-revision-3</link><description>Hello 
 Now we are testing the third version of nRF52832 nrf52833 nrf52840 ic 
 I learned that there is a feature to lock and unlock the debug port of the device, but I use the armgcc and segger development environment instead of MDK. 
 How do I test</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Nov 2021 08:02:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81769/nrf52832-revision-3" /><item><title>RE: nRF52832 revision 3</title><link>https://devzone.nordicsemi.com/thread/339345?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 08:02:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c24a858-419f-47ec-bd80-0cba58f340f8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF52832 rev3 is added in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/index.html"&gt;SDK 17.1.0&lt;/a&gt;&amp;nbsp;which contains system_nrf52_approtect.h.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can bundle --program with --recover.&lt;/p&gt;
&lt;p&gt;Can you try this ?&lt;/p&gt;
&lt;p&gt;nrfjprog.exe -f NRF52 --program xxx.hex --recover&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/279773.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This approach ensures that the FW is written directly after the CTRLAP-&amp;gt;ERASEALL (--recover), which makes it so that the intermediate unlocking image is not needed.&lt;/p&gt;
&lt;p&gt;The intermedia unlocking image must be removed when programming your fw image, hence a sector erase or page erase could in fact be used instead of eraseall if not bundling the commands after each other as proposed above.&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 revision 3</title><link>https://devzone.nordicsemi.com/thread/339315?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 00:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff2eba2-6e1e-4f4f-b8aa-e80ad1c651c5</guid><dc:creator>Август</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your quick response,but I can&amp;#39;t find &lt;span&gt;system_nrf52_approtect.h.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637110383828v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Because APPROTECT has been enabled.&amp;nbsp;You need the --recover when APPROTECT has been enabled, which means you will need it after power cycling / pin resetting a device with empty flash.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I have to use the following two commands.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog.exe -f NRF52 --recover&lt;br /&gt;nrfjprog.exe -f NRF52 --eraseall&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 revision 3</title><link>https://devzone.nordicsemi.com/thread/339226?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 12:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419bac7c-5607-43e3-9c70-ecc176e194d7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Can I use nrfjprog.exe --eraseall?[/quote]
&lt;p&gt;Yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]I am using armgcc and segger? Can I do it like this picture below?&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;Yes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]I search all the project but I can&amp;#39;t find&amp;nbsp;&lt;span&gt;ENABLE_APPROTECT，why？&lt;/span&gt;[/quote]
&lt;p&gt;It&amp;#39;s in the system_nrf52_approtect.h under nRF5_SDK_17.1.0_ddde560\modules\nrfx\mdk&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="xinglog"]Why can&amp;#39;t the program be run using the following command[/quote]
&lt;p&gt;Because APPROTECT has been enabled.&amp;nbsp;You need the --recover when APPROTECT has been enabled, which means you will need it after power cycling / pin resetting a device with empty flash.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 revision 3</title><link>https://devzone.nordicsemi.com/thread/339206?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 11:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0ef0a15-5a02-402c-98ba-c26361bb1969</guid><dc:creator>Август</dc:creator><description>&lt;p&gt;Why can&amp;#39;t the program be run using the following command&lt;br /&gt;nrfjprog.exe -f NRF52 --recover&lt;br /&gt;nrfjprog.exe -f NRF52 --program xxx.hex&lt;br /&gt;nrfjprog.exe -f NRF52 --reset&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Need to use the following instructions to burn to run&lt;br /&gt;nrfjprog.exe -f NRF52 --recover&lt;br /&gt;nrfjprog.exe -f NRF52 --eraseall&lt;br /&gt;nrfjprog.exe -f NRF52 --program xxx.hex&lt;br /&gt;nrfjprog.exe -f NRF52 --reset&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>