<?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 check the DAP is not closed properly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81212/how-to-check-the-dap-is-not-closed-properly</link><description>Dear all, 
 In the datasheet and online it is mentioned that the DAP (Debug Access Port) is activated when a programmer is attached. Moreover, it can happen that the programmer is removed without the DAP being deactivated. The product I am using is an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Nov 2021 12:01:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81212/how-to-check-the-dap-is-not-closed-properly" /><item><title>RE: How to check the DAP is not closed properly</title><link>https://devzone.nordicsemi.com/thread/338149?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 12:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66a3443a-b569-47b6-87f2-1bc917349f08</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There does not appear to be a good way to programmatically detect whether the chip is in debug interface mode, unfortunately. You have the C_DEBUGEN bit in CoreDebug-&amp;gt;DHCSR (&lt;a href="https://developer.arm.com/documentation/ddi0337/e/CEGCJAHJ"&gt;link&lt;/a&gt;), but this register is only reset after a power-on reset (i.e. it will remain set after the debugger has exited debug mode).&lt;/p&gt;
&lt;p&gt;I think your best option is to verify that your programming setup is exiting debug mode after programming as it is supposed to on a device that has not been encapsulated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to check the DAP is not closed properly</title><link>https://devzone.nordicsemi.com/thread/337149?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 18:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7026bf3d-fc81-4f11-99d1-a4a3b732e326</guid><dc:creator>Maverick2k</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. Unfortunately, the device is fully molded with no access to the power source, so also not for measuring. I can conduct wireless updates, but if there is no way to check if the DAP is activated and or&amp;nbsp;disable&amp;nbsp;it,&amp;nbsp;there is no use.&lt;/p&gt;
&lt;p&gt;If you find out more information internally let me know.&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to check the DAP is not closed properly</title><link>https://devzone.nordicsemi.com/thread/336913?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 15:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6a4dd82-9901-4aa5-9d59-ad75e7241092</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If I recall correctly, it is only possible to power down the debug interface externally via the debug interface. I also do not think it is possible to check programmatically if the chip is in debug interface mode or not. But I will ask internally to confirm.&lt;/p&gt;
[quote user=""]What behavior is influenced when the DAP is activated? E.g. timers, sleep, etc?[/quote]
&lt;p&gt;In debug interface mode, the system will keep certain resources needed for debugging active as stated here in the PS: &lt;span&gt;&lt;a title="Emulated System OFF mode" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_2_0#unique_616066248"&gt;Emulated System OFF mode&lt;/a&gt;. This will normally not have any affect on the functional behavior of your device, except for shorter wake up times for interrupts. &lt;/span&gt;&lt;/p&gt;
[quote user=""]Secondly, how can you make sure the DAP is deactivated, without a complete power cycle? Since a power cycle is not an option.[/quote]
&lt;p&gt;Can you measure the current consumption? The &amp;quot;sleep&amp;quot; current in debug interface mode is around ~3 mA.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>