<?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>External reset when debugging nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16968/external-reset-when-debugging-nrf52</link><description>Hi all 
 I&amp;#39;m using the nRF52832 and I&amp;#39;ve configured P0.21 as RESET pin. 
 When I reset the nRF52 via P0.21 while the debugger is running, the nRF52 actually resets but it seems that the debugger didn&amp;#39;t recognize the reset (a breakpoint at the beginning</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Aug 2022 05:59:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16968/external-reset-when-debugging-nrf52" /><item><title>RE: External reset when debugging nRF52</title><link>https://devzone.nordicsemi.com/thread/383161?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 05:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8dd8c86-30bd-43d6-94d3-482892437de4</guid><dc:creator>kvicky</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am getting a similar error. I have nRF52832 board connected to raspberry pi for flashing and debugging using openocd. As soon as openocd command is executed I start getting this error:&lt;/p&gt;
&lt;p&gt;Info : [nrf52.cpu] external reset detected&lt;/p&gt;
&lt;p&gt;Following is the snippet of the output of the openocd command:&lt;/p&gt;
&lt;p&gt;pi@vsense:~ $ openocd -c &amp;#39;bindto 0.0.0.0&amp;#39; -f rpi_as_debugger.cfg -c &amp;#39;transport s elect swd&amp;#39; -c &amp;#39;adapter speed 250&amp;#39; -f target/nrf52.cfg&lt;br /&gt;Open On-Chip Debugger 0.11.0+dev-00815-gf77c919cf (2022-08-23-18:35)&lt;br /&gt;Licensed under GNU GPL v2&lt;br /&gt;For bug reports, read&lt;br /&gt; &lt;a href="http://openocd.org/doc/doxygen/bugs.html"&gt;openocd.org/.../bugs.html&lt;/a&gt;&lt;br /&gt;srst_only separate srst_gates_jtag srst_push_pull connect_deassert_srst&lt;/p&gt;
&lt;p&gt;swd&lt;br /&gt;adapter speed: 250 kHz&lt;/p&gt;
&lt;p&gt;Info : Listening on port 6666 for tcl connections&lt;br /&gt;Info : Listening on port 4444 for telnet connections&lt;br /&gt;Info : BCM2835 GPIO JTAG/SWD bitbang driver&lt;br /&gt;Info : clock speed 1001 kHz&lt;br /&gt;Info : SWD DPIDR 0x2ba01477&lt;br /&gt;Info : [nrf52.cpu] Cortex-M4 r0p1 processor detected&lt;br /&gt;Info : [nrf52.cpu] target has 6 breakpoints, 4 watchpoints&lt;br /&gt;Info : starting gdb server for nrf52.cpu on 3333&lt;br /&gt;Info : Listening on port 3333 for gdb connections&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;br /&gt;Info : [nrf52.cpu] external reset detected&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does anyone have any idea what could be the root cause of this error propping up even when there is no IDE running, no flashing of program is done, no debugging through IDE is started/ going on.&lt;/p&gt;
&lt;p&gt;Thanks in advance...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vicky&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External reset when debugging nRF52</title><link>https://devzone.nordicsemi.com/thread/65090?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2016 14:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c585ca1-97d7-4030-9797-f16726fcf435</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried the nrfjprog with the IAR. When performing the soft reset, the IAR is able to follow it and hits the breakpoint, but when performing the pin reset (which was the one I wanted to test) the IAR can&amp;#39;t follow it. So, unfortunately, it seems that there is no solution for this...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External reset when debugging nRF52</title><link>https://devzone.nordicsemi.com/thread/65089?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2016 12:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c27347c-fda5-4059-838d-de6bc0aec235</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have only tried with Keil, but if I run the code in debug mode and then run &amp;quot;nrfjprog --reset --nrf52&amp;quot;  (soft reset)the code will reset, and hit a breakpoint in main.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External reset when debugging nRF52</title><link>https://devzone.nordicsemi.com/thread/65087?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2016 09:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17001695-e00f-49c2-9ebb-c5a29ad00ec7</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure if I understand you correctly. I would like to debug the startup of my application with the IAR and the SEGGER J-link debugger after an external reset was applied. How can I debug with IAR when the nrfjprog is connected to the chip? Did I miss something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External reset when debugging nRF52</title><link>https://devzone.nordicsemi.com/thread/65088?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2016 09:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b15119f9-45f4-45af-8073-f0ffc88b2cd2</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if it will work to connect the reset signal to the debugger as well..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External reset when debugging nRF52</title><link>https://devzone.nordicsemi.com/thread/65086?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 09:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b358d3-92e5-4f49-87b7-ab454f332b15</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi Kristin.&lt;/p&gt;
&lt;p&gt;Would it help if I connect the nRESET signal of the NRF52 also to the debugger, so that the debugger sees that an external reset was applied? Currently, only SWDIO and SWDCLK are connected to the debugger.&lt;/p&gt;
&lt;p&gt;What kind of reset is performed when using the nrfjprog?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External reset when debugging nRF52</title><link>https://devzone.nordicsemi.com/thread/65085?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 07:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:538ab88f-f8cf-4e9a-b91b-42d39578962a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Using an external reset will most likely &amp;quot;mess it up&amp;quot; for the debuggger..&lt;/p&gt;
&lt;p&gt;If you want to test resetting when in debug mode, you can use nrfjprog to reset the chip. The code should then be able to hit a breakpoint in main.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 14.10.2016:&lt;/strong&gt; If using nrjprog, you can choose between a soft reset and a pin reset.
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfjprog_5F00_reset.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>