<?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>Application does not start without debugger connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17829/application-does-not-start-without-debugger-connected</link><description>Hello, 
 in my current project we develop a BLE firmware which runs on a custom board based on a Telit +s42 module (with integrated nRF52 SoC). 
 We are able to flash the module via SWDIO/SWCLK connected to the debug out connector of the nRF52DK. After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Dec 2016 11:10:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17829/application-does-not-start-without-debugger-connected" /><item><title>RE: Application does not start without debugger connected</title><link>https://devzone.nordicsemi.com/thread/68696?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 11:10:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8686a96f-77a1-424f-a923-ca8c88f80f3a</guid><dc:creator>bloobird0</dc:creator><description>&lt;p&gt;Thanks butch for your time. After investigation with the oscilloscope I found that the firmware runs on the development board, not on the prototype board, the difference is the lack of external oscillator which is used for the stack initialization. Because this topic is different from this one, I close it. Anyway, my problem is not related to the availability of a debugger anymore, I can reproduce the same errors I had.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start without debugger connected</title><link>https://devzone.nordicsemi.com/thread/68695?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2016 14:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:594d6ad5-9710-4821-baad-71bac1e1f1d7</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;I would study the sw and hw configuration of the SWD pins (CLK and DIO) on the custom board.  I think any debugger can reset (or hold the mcu in reset) by some signal on those pins.  For example, maybe the pins must have a pullup resistor so they don&amp;#39;t float?  (I don&amp;#39;t really know, I am just guessing that in your case without a debugger connected, the pins might be holding mcu in reset.)&lt;/p&gt;
&lt;p&gt;I assume you have not changed the standard POR reset interrupt vector and the other standard C startup code including SD startup?&lt;/p&gt;
&lt;p&gt;BTW, I don&amp;#39;t think you should answer, but should comment, so that others don&amp;#39;t see that it has been &amp;quot;answered&amp;quot; and skip reading your thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start without debugger connected</title><link>https://devzone.nordicsemi.com/thread/68694?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2016 11:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56e38d38-64d2-421b-90de-85670e1a4f2e</guid><dc:creator>bloobird0</dc:creator><description>&lt;p&gt;Hello butch, you&amp;#39;re right without the debugger connected, RTT viewer can&amp;#39;t display anyting ;-)&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been further and I can&amp;#39;t identify where I should look at:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I updated the firmware to continuously toggle a pin so that I can see the device running with the oscilloscope. The first thing that the firmware does is toggle the pin so I should be able to see it toggling even if a restart occurs soon after power on.&lt;/li&gt;
&lt;li&gt;I flash the custom board from Keil or nRF Go Studio through the nRF52DK. After the flash, the pin does not toggle.&lt;/li&gt;
&lt;li&gt;it starts toggling only when I start RTT Viewer (nRF52DK still connected). I output the RESETREAS value which is 0x0004: software reset. I guess that RTT Viewer writes in the RESET register. Am I right?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now I disconnect the custom board from the nRF52DK.  I apply a power cycle. The pin is not toggling. I expected a power on reset to happen. I plug the nRF52DK debugger: the pin is not toggling. I start RTT viewer: the pin is toggling.&lt;/p&gt;
&lt;p&gt;I understand that the custom board remains in a reset state until the RTT viewer sets a software reset.&lt;/p&gt;
&lt;p&gt;Do I have to initialize anything in the firmware so that it starts when power is applied?&lt;/p&gt;
&lt;p&gt;The reset pin is not used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application does not start without debugger connected</title><link>https://devzone.nordicsemi.com/thread/68693?ContentTypeID=1</link><pubDate>Sat, 19 Nov 2016 23:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc9ecf0-7083-4dc0-9478-10f0c4061330</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Maybe I am confused but: doesn&amp;#39;t the RTT viewer communicate via SWDIO/SWCLK?  So how could it display debug messages if that is disconnected?  Yes, the fact that it is not advertising is strange.  Is there an LED you can flash?  How do you handle faults/exceptions?  What is the power supply when flashing versus your other configuration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>