<?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 Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49461/how-to-remove-debug-interface-on-nrf52832</link><description>Hello, 
 
 I can successfully put my nRF52832 into System OFF mode, however, the Debug Mode Interface is still running, so the current consumption is &amp;gt; 2mA. What are the command(s)/Soft Device APIs to truly take the system out of Debug Mode? I&amp;#39;m using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jul 2019 17:59:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49461/how-to-remove-debug-interface-on-nrf52832" /><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/198240?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 17:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09416f2c-0ead-406e-8dee-90ca313a689e</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;&lt;span&gt;nrf_gpio_input_disconnect() or&amp;nbsp;&lt;strong&gt;nrf_gpio_cfg_watcher( pinID )&amp;nbsp;&lt;/strong&gt;before going into sleep mode?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/198238?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 17:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3e87fdd-746f-4ccb-93a2-68ca815eaef5</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;RK, I have physically performed a hard reset on the board, removed all debug (SWD) connections and UART connections, and removed re-attached the battery. That should do the trick according to the Nordic Application engineers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197959?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 01:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b015b2c-6fd0-4ca4-9b52-747d946cd44f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;one question - are you just doing a soft reset after flashing or have you tried completely power cycling the board by removing and re-attaching power? It&amp;#39;s never been clear to me that a soft reset resets the debug interface.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197952?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 21:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2044cac-28ec-4638-bf6f-bdae01c18cab</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;Oh, then my code is incorrect? You mention that I need to set the GPIO pins as inputs. Therefore I need to remove my call to nrf_gpio_input_disconnect( pinID ) and replace with:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf_gpio_cfg_watcher( pinID ); //&amp;nbsp;Set GPIO pins as inputs&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;gpio_interrupt_disable( pinID ); // Disable interrupts&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_in_uninit( pinID ); // Uninitialize&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please confirm? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197864?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 13:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dcd4b1f-ae6d-4d71-83e6-e300d5de96cd</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if it only specifies if the probes are connected to the SWD interface or also if it&amp;#39;s in debug mode. Could you try flashing your custom board with the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_pwr_mgmt.html?cp=5_1_4_2_2_20"&gt;Power Profiling application&lt;/a&gt; and see what current consumption you measure? Could you also describe how you measure the current in more detail?&lt;/p&gt;
&lt;p&gt;Yes, you should set the GPIO pins as inputs and de initialize the GPIO buffer. This will prevent the GPIO pins from floating. You can read the state of each GPIO pins by reading the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=3_1_0_19_2_9#register.PIN_CNF-0"&gt;PIN_CNF[N] registers.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197689?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 21:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d915ea3f-98a6-41fa-909b-6ef751caeec3</guid><dc:creator>Sami</dc:creator><description>&lt;p class="p1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;nrf_gpio_input_disconnect( pinID ); // Currently calling this&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;gpio_interrupt_disable( pinID );&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span&gt;// Currently calling this&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-tab-span"&gt;&lt;/span&gt;&lt;span class="Apple-tab-span"&gt;&lt;/span&gt;&lt;/span&gt;nrf_drv_gpiote_in_uninit( pinID );&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span&gt;// Currently calling this&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197677?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 17:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8729fc-98d8-4b7a-b02e-9e76a471d58c</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;Thank you Nguyen, my next analysis is to characterize leaks on my custom board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jared, unfortunately, I cannot send my .hex file. Can&amp;#39;t you check debug mode with a read on&lt;/p&gt;
&lt;p&gt;DWT-&amp;gt;CYCCNT ?&lt;/p&gt;
&lt;p&gt;Also, don&amp;#39;t I need to call&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; this:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;gpio_interrupt_disable();&lt;/p&gt;
&lt;p class="p1"&gt;or&lt;/p&gt;
&lt;p class="p1"&gt;this: nrf_gpio_input_disconnect();&lt;/p&gt;
&lt;p class="p1"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;on all non-used GPIOs that while I&amp;#39;m in System OFF mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197500?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 06:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39f34509-51ee-4a42-9eee-5ad3eb8e2c77</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I understand. I&amp;#39;m still not sure that the device is in debug mode. I would like to reproduce this myself. Could you share a pre-compiled hex file of the application and the softdevice version that you&amp;#39;re using?&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 Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197495?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 06:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dc3c9a7-69b9-4652-b2f4-384314931f18</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;First thing first. &amp;nbsp;Have you validated your hardware against leakage ? have you made any measurement to check that ? Here is how to qualify your hardware for low power.&lt;/p&gt;
&lt;p&gt;Make a&amp;nbsp;firmware with just main function with while (1) { __WFE();}. &amp;nbsp;just that no softdevice. Remove swd connection, power cycle. &amp;nbsp;Check current. &amp;nbsp;It should not be less than 10uA. &amp;nbsp;If more than that, your hardware is leaking. &amp;nbsp;Next step is to find out what leaks. &amp;nbsp;This is done by configuring GPIO that are connected to something and the devices that are connected. &amp;nbsp;You might need to remove suspected components one by one to find the leaks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197471?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2019 21:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cea220d-6250-4097-8635-d9bfb8356c1d</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;Yes, after flashing the device, we&amp;#39;re issuing a reset to ensure that the device is no longer in debug interface mode (just in case). The premise behind my question: I&amp;#39;m putting my nRF into System OFF mode via a call to:&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;uint32_t&lt;/span&gt; errCode = sd_power_system_off();&lt;/p&gt;
&lt;p class="p1"&gt;However, the current consumption is still ~2.5mA. After peeling through various threads, lots of responses have said that the nRF is still in debug interface mode. I thought that I had to issue a special command to get it out of debug interface mode in order to achieve truly low current consumption of ~1.5uA.&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;Anyway, before entering System OFF mode, I&amp;#39;m terminating EasyDMA (including the Software work-around to power flush TWIM and SPIM as per errata) and shutting down peripherals, but still getting a large current draw. Do I need to pull any other GPIOs low or explicitly halt the HFCLK?&amp;nbsp; Any assistance would be greatly appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197390?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2019 13:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2244198-e8df-47aa-b5f9-b39d3ad38b08</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF52 should go into normal mode when it&amp;#39;s has been power recycled. How do you know that it&amp;#39;s still in DEBUG mode? Are you able to reproduce the same issue with the DK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197175?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 14:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d07dce72-946b-4d4a-a94b-5923d3bdae1b</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;Yes, I am using a custom board. I thought we use sd_flash_protect() to write to the UCIR register to take the nRF out of debug mode interface by writing&lt;/p&gt;
&lt;p&gt;&amp;quot;NRF_UICR-&amp;gt;&lt;span class="s1"&gt;APPROTECT = 0xFF&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;What is the proper way to take the nRF52832 out of debug mode interface? Maybe sd_flash_protect() is not the correct API? I&amp;#39;m using SDK v11.0.0.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/197159?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 13:47:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:802cd72f-d7f8-4cfb-810c-9f2ff0ff94fb</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using a custom board? &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#gadf6c5b029494663d62783ace862b99d5"&gt;sd_flash_protect &lt;/a&gt;are used to set the flash protection config registers.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Remove Debug Interface on NRF52832</title><link>https://devzone.nordicsemi.com/thread/196973?ContentTypeID=1</link><pubDate>Sun, 07 Jul 2019 19:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d401458a-80a5-4481-a4a2-04e44899da34</guid><dc:creator>Sami</dc:creator><description>&lt;p&gt;update: I believe that&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;sd_flash_protect() is the API to use, but not sure of the params to pass it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>