<?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>nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21540/nrf52832-internal-oscillator-softdevice-enable-hanging</link><description>I&amp;#39;m using the nRF52832 chip without an external crystal. I configured it to use the internal RC with: 
 nrf_clock_lf_cfg_t clock_lf_cfg;
clock_lf_cfg.source = NRF_CLOCK_LF_SRC_RC;
clock_lf_cfg.rc_ctiv = 16;
clock_lf_cfg.rc_temp_ctiv = 2;
clock_lf_cfg</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 May 2017 15:38:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21540/nrf52832-internal-oscillator-softdevice-enable-hanging" /><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84560?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 15:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2117c7-3140-4772-ac47-3c1643e77ec7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Great that you found the solution. This is a known and old bug from IARs side, where IAR will jump directly to the application&amp;#39;s reset handler when starting debugging, instead of running the softdevice&amp;#39;s reset handler. The line is therefore needed to force the debugger to know that the interrupt vectors are located in the SoftDevice. The line is added by default in all the IAR BLE examples in the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84557?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 15:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ff91786-bf0a-4c1e-9bc5-32fb8354e054</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;It was fixed by added that line. It wasn&amp;#39;t there in the project I was using. I had copied over just the IAR project file, but not the debugger file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84558?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 14:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b37f58c-7ecb-40c1-b654-4d09d7e3ec37</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Was the issuse fixed when you added  &lt;code&gt;--drv_vector_table_base=0x0&lt;/code&gt; ? This line was not there by default in the example you used?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84575?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 14:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30de480c-2cad-4760-b102-3f72856b49ed</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;Apparently this is the issue I was having &lt;a href="https://devzone.nordicsemi.com/question/6257/nrf51822-softdevice-cant-work-properly-with-iar/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
For my future sanity, is it known why IAR does this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84561?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 17:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e2315fa-5a64-4c25-816f-cb61f2ed4c8e</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Well that&amp;#39;s much better.&lt;/p&gt;
&lt;p&gt;Double check the rotation of the 32MHz as Sigurd suggested.  It is an easy mistake to make.
After that I would suggest posting your schematic and code to someone for review.  Trying to debug a fault starting up the SD can be tedious via the blog.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84553?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 17:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02662f2e-5484-45b0-999c-7a604f8dbf7d</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;Okay, so I was confused. We have the 32MHz crystal, but not the 32Khz crystal. Sorry about that confusion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84572?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 15:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee84099c-542e-43e9-ae86-35d80f30278e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;As mentioned in the &amp;quot;&lt;a href="https://devzone.nordicsemi.com/tutorials/35/"&gt;General PCB design guidelines for nRF52&lt;/a&gt;&amp;quot; tutorial:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;An external 32 MHz crystal is
mandatory, and an external 32 kHz
crystal is optional&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The external 32 MHz crystal need to have &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=2_2_0_18_3_1#unique_1930830144"&gt;max ±40 ppm&lt;/a&gt;. On the nRF52832-DK the 32MHz crystal is ±10 ppm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84562?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 14:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9aa6e7c-e336-4eab-be66-7ae57823b3b2</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Ah, there was the missing bit!&lt;/p&gt;
&lt;p&gt;In your original question you only mentioned the missing RTC. You can run the SD without an RTC but you cannot run it without a 32MHz. That is your problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84559?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 13:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016324e1-f81e-4fad-84bd-901420e78398</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;We don&amp;#39;t have a 32MHz crystal mounted on the board. We wanted to conserve board space. The reason states soft reset and chip lockup (I see NRF_POWER-&amp;gt;RESETREAS = 0x1100 [12]), but I see from other threads that the lockup bit is not to be trusted when set alongside along bits. I have the DEBUG macro defined, so I thought it wouldn&amp;#39;t be calling the system reset function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84571?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 09:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e4719c6-c390-4d46-91e0-c010045cb126</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Could you double check that the 32 MHz crystal on your board is mounted correctly, i.e. not shifted by 90 degrees for example?&lt;/p&gt;
&lt;p&gt;Is the chip resetting? Resets at runtime are in almost all cases caused by code asserts ( error handler calls nvic_systemreset()). You can check &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_2_0_17_8_2#register.RESETREAS"&gt;NRF_POWER-&amp;gt;RESETREAS&lt;/a&gt; on startup if you want to check what the reset source was.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84574?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 18:21:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88283eda-6d58-4333-a90c-68c8e33589de</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Have you tried your code on one of the development kits?  Or, are there too many hardware requirements such that it wont&amp;#39; run on a standard DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84573?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 18:19:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c3da362-95d8-46f0-a63e-fc609da74a36</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Well we would need to review your schematic.  If you are not happy with one of the regulars on this site reviewing it (such as me) then I know Nordic has a private review process.  Also I think we should see your source code.  There could still be a problem there.  Let me know.  I&amp;#39;m happy to assist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84556?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 18:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccc323df-26d9-40b4-862c-6913d307d63a</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;I stopped using the scheduler with the softdevice and I still see the problem. I&amp;#39;m open to this being a hardware problem. Is there a good way to check that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84570?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 19:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7bb2625-d95b-4497-a2fa-69328d127bef</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;No the scheduler is not required with the soft device. And, app scheduler is not required for the app_timer.
For this reason I suggest you try starting the soft device without the scheduler as shown in my comment on 4/26.  It could just be the scheduler causing your problem.&lt;/p&gt;
&lt;p&gt;Here is some additional info on the app_timer and also the app_scheduler:
&lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/tutorials/23/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84569?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 19:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de3097de-e21c-4bcc-bcd8-98ab966b31f1</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;Do I need to use the scheduler with the softdevice? If I use the scheduler for the app_timer, am I required to use the scheduler with the softdevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84568?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 18:49:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2f0b5ce-f945-414a-950b-8a5f44c237a3</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Please clarify your comment.  Do you need to use what with the soft device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84567?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 18:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef8799a2-fe54-496f-aa98-0e6ef389382d</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;I haven&amp;#39;t tried without the handler, but I use the scheduler for the app_timer. Do I need to use it with the softdevice as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84566?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 16:39:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc6de9f-2961-4348-8449-b02620b3e7ee</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Have you tried starting it without the app scheduler? I haven&amp;#39;t ever used the scheduler but my understanding is that it only affects the way interrupts are handled and provides more resources to main.  Assuming you aren&amp;#39;t running gobs of code in handlers, you should get plenty of time back at main to run housekeeping even without the scheduler.&lt;/p&gt;
&lt;p&gt;So try:&lt;/p&gt;
&lt;p&gt;#define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,            &lt;br /&gt;
.rc_ctiv       = 16,                                &lt;br /&gt;
.rc_temp_ctiv  = 0}&lt;/p&gt;
&lt;p&gt;nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;&lt;/p&gt;
&lt;p&gt;SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84565?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 15:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec3d35c2-f0bb-49f5-94ad-09c7c02a21bd</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;Yes, I added DEBUG is a preprocessor symbol. If I go through with the debugger step by step, I can eventually reach the error handler, but just hitting &amp;quot;Continue&amp;quot; always jumps me back to 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84564?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 15:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec9912e-f211-4d76-bf72-f9b97f8c0779</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you remember to add &lt;code&gt;DEBUG&lt;/code&gt; as a Preprocessor symbol?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84563?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 14:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9a4c397-35a0-4be5-9d4e-ec4dc8339abb</guid><dc:creator>Definitely Confused</dc:creator><description>&lt;p&gt;I&amp;#39;m seeing it reset to 0, even if I set the temp_ctiv to 0. Even with regular debugging, I&amp;#39;m not seeing it hit any error handlers. I&amp;#39;ve put breakpoints in app_error and softdevice_handler and I&amp;#39;m not seeing anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84555?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 18:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3908b4-f199-4911-b6ab-58115dbead37</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I had a fault every time I tried to start with temp_ctiv.  Seems like it might be a bug in some SD&amp;#39;s. Try setting temp_ctiv to 0. If you are running on the internal RC, then likely RTC accuracy isn&amp;#39;t supremely important.  So a calibration cycle every 4 seconds will be sufficient. The temp measurement isn&amp;#39;t that important.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Internal Oscillator Softdevice Enable Hanging</title><link>https://devzone.nordicsemi.com/thread/84554?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 16:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83ea1997-d8f3-4c50-984d-b3aa0c2cf49c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Have you tried regular debugging and checking if you are running into the error-handler? See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this post&lt;/a&gt; on how to debug. That the address jumps to 0 continuously indicates that the device is restarting (default behavior when running into the error-handler.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>