<?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>My app doesn&amp;#39;t work with internal clock, but works when I debug it.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36823/my-app-doesn-t-work-with-internal-clock-but-works-when-i-debug-it</link><description>I am using nRF52832 with SDK 14. My app has bootloader and dfu. Everything was working fine with external crystal. I changed my clock source to RC and used these recommended settings in my app code and bootloader code 
 for sdk_config.h 
 
 and for pca_10040</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jul 2018 14:42:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36823/my-app-doesn-t-work-with-internal-clock-but-works-when-i-debug-it" /><item><title>RE: My app doesn't work with internal clock, but works when I debug it.</title><link>https://devzone.nordicsemi.com/thread/141731?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 14:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd68f549-8b5b-463c-8029-c00f7cbfe2ee</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;Yes, I did same configurations for both the application and bootloader. Bootloader advertises when I flash&amp;nbsp;&lt;span&gt;the BL+ SD to custom board. When I connect custom board to the debugger or oscilloscope, it is working so I understood it uses debuggers internal resistor. Then I mount a resistor between VDD and RESET(P0.21) pin and now it is working. We had the same issue with UART on this custom board, UART doesn&amp;#39;t&amp;nbsp;work without same resistor too. Do we need that resistor between VDD and RESET? Also I accepted your answer there are no restrictions with using the internal RC in bootloader or the ble_app_buttonless_dfu application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My app doesn't work with internal clock, but works when I debug it.</title><link>https://devzone.nordicsemi.com/thread/141728?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 14:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2487b72b-84b8-460c-b77e-ae6e86acc338</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You have modified the LF Clock source configuration to use the internal RC in both the application and bootloader right? Does the bootloader advertise when you flash the BL+ SD to custom board and you have the bootloader configured to use the internal RC? If that is the case, could you flash the application and the bootloader settings page and then start a application debug session and see if you hang at&amp;nbsp;sd_softdevice_enable() in&amp;nbsp;nrf_sdh_enable_request() called from ble_stack_init().&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My app doesn't work with internal clock, but works when I debug it.</title><link>https://devzone.nordicsemi.com/thread/141724?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 14:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb2e9c39-38a0-4466-bef0-9b5d1d882bcb</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;Thanks for the reply. I am using custom board not the DK. I just tried with DK and it is working well so I understood it is the hardware problem. I was using SD+APP+BL with the external&amp;nbsp;crystal and everything was fine. Then I removed external crystal from custom board and changed LF clock source to internal RC as you recommended&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/24310/nrf52832-custom-board-power-on-question#post-id-163330"&gt;here&lt;/a&gt;. Then I upload again updated&amp;nbsp;&lt;span&gt;&amp;nbsp;SD+APP+BL and it didn&amp;#39;t&amp;nbsp;work. I debug it to see the problem but it worked fine during the debug. I saw it did advertising. But it doesn&amp;#39;t&amp;nbsp;work without debugging. Also I tried blinky application with the same custom board and internal RC, it worked too. What can cause this problem? Thanks again.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My app doesn't work with internal clock, but works when I debug it.</title><link>https://devzone.nordicsemi.com/thread/141712?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 13:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa659f23-84c5-4a0a-9547-e8fdfe887e93</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi kb2423,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;there are no restrictions with using the internal RC in bootloader or the ble_app_buttonless_dfu application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using a custom nRF52 board or are you using a nRF52 DK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So&amp;nbsp;if you&amp;nbsp;upload the default ble_app_buttonless_dfu application and the SoftDevice (not the bootloader) the everything works as it should regardless if you use the external crystal or the internal RC?&lt;/p&gt;
&lt;p&gt;The issue occurs when you set the LF clock source to the internal RC in the bootloader and upload SD+APP+BL?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My app doesn't work with internal clock, but works when I debug it.</title><link>https://devzone.nordicsemi.com/thread/141377?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 15:13:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3081a9be-629a-467c-be77-b92047ba5128</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;&lt;span&gt;I also uploaded original&amp;nbsp;ble_app_buttonless_dfu application in SDK. It didn&amp;#39;t&amp;nbsp;work too. So problem is in dfu. Cant I use internal clock with dfu&amp;nbsp;applications?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>