<?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 debug mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29232/nrf52832-debug-mode</link><description>Hi,
I am using nrf52832_xxaa with SDK v11.0.I have the requirement to disable the debug at the start of the program.(Also to enable it if required in the future). 
 I use the following code at the start of the main function to write into the APPROTECT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jul 2019 12:15:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29232/nrf52832-debug-mode" /><item><title>RE: nrf52832 debug mode</title><link>https://devzone.nordicsemi.com/thread/198158?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 12:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c24a2450-6b0c-4436-bd0c-32984606fb8c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You can use normal softdevice flash api (sd_flash_*) to access UICR&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 debug mode</title><link>https://devzone.nordicsemi.com/thread/196970?ContentTypeID=1</link><pubDate>Sun, 07 Jul 2019 16:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27693ab2-8ab4-4e90-b713-671cd142c137</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;Hello, can you please specific which exact Soft Device API to use in order to write to the NVMC to disable debug mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using nRF52832, SDK 11.0.0, and S132. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 debug mode</title><link>https://devzone.nordicsemi.com/thread/116290?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 08:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:255022ba-e438-44e6-97bb-55f33150329c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Alternative to writing to &lt;code&gt;UICR-&amp;gt;APPROTECT&lt;/code&gt;? No. What is wrong with it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 debug mode</title><link>https://devzone.nordicsemi.com/thread/116289?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 07:29:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06db190-1bf7-4463-8bc7-873b1b1d42f5</guid><dc:creator>sreehari410</dc:creator><description>&lt;p&gt;@endnode Is there any alternative method to disable the debug mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 debug mode</title><link>https://devzone.nordicsemi.com/thread/116286?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2018 10:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24376b38-94d0-47d5-8357-efccad01bd91</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, if you have a glitch in your code that erases the whole UICR then you will unlocked the chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 debug mode</title><link>https://devzone.nordicsemi.com/thread/116287?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2018 13:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c85c538-43d6-4a21-b230-065cf00747cb</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Oh my bad! So does it mean that read-back protection (and debugger &amp;quot;kill switch&amp;quot;) can be re-enabled from FW and if you do some security hole in there then you can end-up with unlocked chip?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 debug mode</title><link>https://devzone.nordicsemi.com/thread/116288?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2018 13:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:994241ed-729e-45fa-823a-bd99685b6ebb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Actually, on nRF52 series, it&amp;#39;s possible to erase UICR without erasing the chip. Check ERASEUICR register in  NVMC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 debug mode</title><link>https://devzone.nordicsemi.com/thread/116285?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 21:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d7576d1-e81b-4f5e-873d-c4cb27e9ed49</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;If you don&amp;#39;t have Soft Device running then this is the way to write to NVMC (including UICR). If you have Soft Device running then you need to use SD API for flash access. It&amp;#39;s not necessary to disable SD just because of this operation. The main problem is: the fact that APPROTECT blocks most of SWD debugging interface except &amp;quot;recovery&amp;quot; procedure is irreversible unless you wipe the whole chip. So there is actually no way you would revert this later from your FW. There would be wild scenario of trying to erase UICR from within the FW and do reset which would be basically &amp;quot;suicide&amp;quot; from the FWs point of view. However even if this is possible it is useless: you would need to attach SWD debugger to program the chip again so why erasing it from within when the debugger can do it any time...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>