<?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 starts only with connected SWD / debugger after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52019/application-starts-only-with-connected-swd-debugger-after-dfu</link><description>I have the following problem: 
 I want to update my application code via BLE with the secure bootloader. This works perfectly while the J-Link-RTT-viewer is connected. 
 When the J-Link-RTT-viewer is not connected, the bootloader starts, but the new application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Sep 2019 13:00:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52019/application-starts-only-with-connected-swd-debugger-after-dfu" /><item><title>RE: Application starts only with connected SWD / debugger after DFU</title><link>https://devzone.nordicsemi.com/thread/209182?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 13:00:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ccdf69-c2fa-4614-8ea5-1e4b869112e9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You mention that you have removed all calls to&amp;nbsp;SEGGER_RTT_printf(), but the fact that you use(d) directly in the first place is interesting. The RTT implementation may use semi hosting, but it is not used if you use nRF log (see line 82-84 in&amp;nbsp;external\segger_rtt\SEGGER_RTT_Syscalls_KEIL.c). So if you use RTT, try using nrf_log instead of using it directly (this is the approach used by the SDK examples, including&amp;nbsp;ble_app_template). What other modifications have you made? Any changes in your Makefile? You may also find relevant information in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37452/turning-semihosting-on"&gt;this&lt;/a&gt;&amp;nbsp;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37477/unable-to-run-uart-ble-app-example-without-debugger"&gt;this&lt;/a&gt; thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application starts only with connected SWD / debugger after DFU</title><link>https://devzone.nordicsemi.com/thread/209158?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 11:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d66033-e577-41f4-8288-1cefb538acee</guid><dc:creator>AbCdE</dc:creator><description>&lt;p&gt;How do I know if I use semihosting? How do I turn it off?&lt;/p&gt;
&lt;p&gt;I used the ble_app_template_pca10040_s132 as a basis. I don&amp;#39;t necessarily need debug outputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application starts only with connected SWD / debugger after DFU</title><link>https://devzone.nordicsemi.com/thread/209148?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 11:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8696dcfa-6baa-439e-8007-d148384467a5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The typical reason for an application to only run when a debugger is connected is that you use semihosting. Is that the case? It could depend on the RTT configuration or your fputc() implementation (typically which retarget.c file you have) or similar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>