<?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>nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19582/nrf51-wont-run-without-debugger</link><description>Have an nrf51 board design that doesn&amp;#39;t want to run without a debugger. When programmed, the debugger can run the board. When the debugger is removed, the board does not seem to run at all. 
 The SWDCLK line has a 12k pulldown. The SWDIO line has a 12k</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Feb 2017 14:29:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19582/nrf51-wont-run-without-debugger" /><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76204?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 14:29:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caacdd70-807c-4005-afff-533247bb816e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;could it be that semihosting is enabled (relevant if GCC toolchain is used)? -&amp;gt; &lt;a href="https://devzone.nordicsemi.com/question/84130/nrf52-does-not-start-without-debugger/"&gt;https://devzone.nordicsemi.com/question/84130/nrf52-does-not-start-without-debugger/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76207?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 13:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:857b56aa-04e7-44b5-9700-d7560b824448</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Okay, the chip version is compatible with the softdevice version you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76208?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 13:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dd909ab-3bd8-46de-939f-b7ce495f86d3</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you check the following:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; When not in debug mode, does the code start running? You can check this by making an LED blink.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; What is the ramp-up time of VDD?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3)&lt;/strong&gt; The GPIOs, are any of the GPIOs connected to something that still has a voltage when VDD is 0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76206?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 14:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f32162f-2c98-4b03-b95f-b47d4f5ee504</guid><dc:creator>Jim Peschke</dc:creator><description>&lt;p&gt;Kristin, the chip is CF AC A0.  The soft device version is s130v1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76205?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 12:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e144cbdf-e445-4763-a5f9-5b127d2b4d4b</guid><dc:creator>Jim Peschke</dc:creator><description>&lt;p&gt;Kristin, I don&amp;#39;t know but I will get those answers.  One thing I&amp;#39;ve learned is that if I pull SWDIO low momentarily, the chip comes up 100% of the time, and stays up until power is removed.  This almost certainly tells me that the chip is stuck in some mode that can be reset out of.  An external POR circuit is not an option here due to size restrictions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76203?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 10:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3967d5a-b305-4c2a-b033-7277ad85a679</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Jim Peschke: What is the chip revision of the chip you are using? Do you use a softdevice, if so, which version?
The chip revision vs chip markings can be found in &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf51%2Fdita%2Fnrf51%2Fcompatibility_matrix%2FnRF51822_ic_revision_overview.html&amp;amp;cp=3_0_1"&gt;this&lt;/a&gt; compatibility matrix.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76202?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 16:17:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94917bb3-2fa2-453e-b975-634019153bb7</guid><dc:creator>Jim Peschke</dc:creator><description>&lt;p&gt;Thanks Daniel.  Modding this board is a challenge, but if we don&amp;#39;t get somewhere soon we&amp;#39;ll probably try removing the pullup on SWDIO.  Software engineer says she is using RC clock.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76201?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 12:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c909b1f4-7326-4724-af2a-4c2bcf51f244</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;If touching the SWDIO line with probe has an effect...there is another thread in this forum that suggests adding a small capacitor.  But I recall it was about the SWDCLK line, and was about using too much power since running in DEBUG mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76200?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 22:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61b8d90c-77ed-41be-b2ca-1070f5c01432</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;Yes, ask the SW developer about that! All the BLE examples in the SDK is configured to use external 32 kHZ crystal, so it&amp;#39;s crucial to configure the SoftDevice to use the RC oscillator on boards that don’t have an external 32 kHz crystal. On the newest reference design a 1K ohm pulldown on SWDCLK is added, anything other than that is a bit “overkill”. No need for external pullup on SWDIO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76199?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 21:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8c6c64f-41ee-409a-8d73-4451df3d662f</guid><dc:creator>Jim Peschke</dc:creator><description>&lt;p&gt;I am considering removing the 12k pullup on SWDIO, since the Nordic reference design doesn&amp;#39;t have it (but it DOES have the 12k pulldown on SWCLK, so it stays).  We&amp;#39;ve had trouble with them before, but we might have been using older NRF51s.&lt;/p&gt;
&lt;p&gt;I do NOT have a 32kHz crystal.  I will ask the software developer about that!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76198?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 21:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a0f0041-a8d0-4f4f-8a95-4f7c9d50eea8</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;Use this clock config:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_clock_lf_cfg_t rc_cfg = {
   .source = NRF_CLOCK_LF_SRC_RC,
   .rc_ctiv = 16, // Check temperature every 4 seconds
   .rc_temp_ctiv = 2, // Calibrate at least every 8 seconds even if the temperature hasn&amp;#39;t changed
};
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76197?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 21:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e230524-2003-4819-97e8-25092005f9cb</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;Do you have external 32kHz crystal on the board? If not, make sure that the SoftDevice is configured to use the internal RC oscillator.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76196?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 21:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e393df3-62fc-4a82-a0ca-59d2b9aa9040</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Have you tried removing those resistors. They are not mandatory, they are just a precaution, and are not supposed to be so necessary on newer versions of the nRF51 (though older versions were supposed to be prone to being locked in debug mode)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76195?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 21:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06dbff50-2871-4c7e-af30-9609775631ad</guid><dc:creator>Jim Peschke</dc:creator><description>&lt;p&gt;Yes, I have an external 12k pullup on SWDIO and a 12k pulldown on SWDCLK.  I am not the software developer.  I know that the application we are testing on now uses the softdevice.  The chip very much acts like its stuck in an undefined state until the SWDIO/RESET line is moved.  I am asking the software developer to test this my manually cycling the SWDIO/RESET line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76194?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 21:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a172fb03-9883-4fc4-86f1-66ba23803ff5</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;You have 12k external pulldown/pullup on the SWD lines?? Do you have this issue if you try to program an application that doesn’t use the softdevice? Or does the issue occur only for the BLE examples in the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76193?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 21:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:001799d3-95ad-4e3f-8093-fd10f3373913</guid><dc:creator>Jim Peschke</dc:creator><description>&lt;p&gt;I connect four wires: SWDIO, GND, SWCLK, and Power (which is 2.8V for odd reasons, not 3.3V).  I noticed that one of the reference designs does NOT have any external pullup on SWDIO.  The manual says this pin is internally pulled up.  I have a previous design where these four signals have identical wiring, and I have not encountered this problem before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 wont run without debugger</title><link>https://devzone.nordicsemi.com/thread/76192?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 20:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd046c6-ee84-4253-9bbc-d5b8b821f470</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;When you connect the debugger, which wires do you connect ?&lt;/p&gt;
&lt;p&gt;GND, SWDIO, SWCLK , 3.3V etc&lt;/p&gt;
&lt;p&gt;Have you tried just connecting the ground and other wires, one by one and see if any particular wire makes it work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>