<?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>Programatically set debug mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78323/programatically-set-debug-mode</link><description>Is there any way to programatically set the 51822 into debug mode following a power on reset, or disable pin reset in normal mode? 
 Here is a synopsis of the issue: 
 
 
 
 Board design info: 1.) Intention was to use standard uUSB connector for both</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Aug 2021 12:45:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78323/programatically-set-debug-mode" /><item><title>RE: Programatically set debug mode</title><link>https://devzone.nordicsemi.com/thread/324484?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 12:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8740da19-45d0-4932-bac8-838b75487ddb</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;There are a lot of digital circuitry around the MCU that ties the different parts together. NAND gates are heavily used to perform logical operations.&amp;nbsp;Most of this is done by design and not really programmed. The only way to change this it to change the metal routing layers that connects the gates together, just like a good old fashioned TTL circuits on a PCB.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programatically set debug mode</title><link>https://devzone.nordicsemi.com/thread/324302?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 15:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7deacc-e4e2-4178-a397-f5219d3b92df</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello again Ketiljo, and thank you for your response,&lt;/p&gt;
&lt;p&gt;So, if I am understanding you correctly, it would indicate that the HW block is hard (mask) programmed.&amp;nbsp; Is this essentially correct?&amp;nbsp; Just a curiosity on the core technology of the chip.&lt;/p&gt;
&lt;p&gt;Robin @ TL&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programatically set debug mode</title><link>https://devzone.nordicsemi.com/thread/324273?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 13:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f9efa46-bb9f-47a3-a61f-357881f2a5c5</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;The reset pin is shared with the debug interface (SWDIO) on the nRF51-series devices. There&amp;#39;s a HW block that enables the debugger/programmer after reset has been toggled a number of times. This is described in the reference manual, chapter 11&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are no registers that can override this, sorry.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programatically set debug mode</title><link>https://devzone.nordicsemi.com/thread/324051?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 14:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ed6866-d155-4f3c-8a6d-d11d469dc8d0</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello Ketiljo,&lt;/p&gt;
&lt;p&gt;Thank you for the response..&lt;/p&gt;
&lt;p&gt;Please answer the following question relative to chip capabilities, not Nordic policy:&lt;/p&gt;
&lt;p&gt;Would it be physically possible to disable the nRESET pin with something along the lines of a &amp;quot;custom soft device&amp;quot; implementation?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Robin @ TL&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programatically set debug mode</title><link>https://devzone.nordicsemi.com/thread/323990?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 12:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f138b301-bf9a-4ad6-996c-70b023d85ba9</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;The reset pin can&amp;#39;t be assigned to another pin, sorry. Neither can it be disabled in normal mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s generally not a good idea to se a widely used connector like USB for something else so the best here will be to either use cables with only VBUS and GND and no data lines or re-design the board to have the programming pins on a separate connector. There&amp;#39;s always a risk that someone uses a normal USB cable here so the latter is really the safest way,.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>