<?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>Can&amp;#39;t get BLE device to sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep</link><description>I have a custom PCBA with which has the flow of: 
 
 - Boot 
 - Advertise some temperature data read from TWI with a 5 second timeout using `ble_adv_fast_timeout`. 
 - I then set a timer to wake the `app_timer_start(m_awake_timer_id, APP_TIMER_TICKS(SLEEP_IN_MS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2024 13:19:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep" /><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/507604?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 13:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06e49204-3d4e-438f-90de-a90392438e0b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad to hear you figured it out!&lt;/p&gt;
&lt;p&gt;Some closing remarks from our side.&lt;/p&gt;
&lt;p&gt;1. Yes, using the SYNTH for the LF clock source will cause the HF crystal to always be on and thus the device will never be in a low power state as is possible with the other clock sources.&lt;/p&gt;
&lt;p&gt;Best of luck in future endeavors!&lt;/p&gt;
&lt;p&gt;-Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/507440?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 17:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3ac3578-a207-47d5-b924-5218d260d37f</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s taken a long time, but I finally got myself hold of a PPK2 and the measurements are looking&amp;nbsp;&lt;strong&gt;much&amp;nbsp;&lt;/strong&gt;more reasonable:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_10_2D00_22-at-18.34.19.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I think&amp;nbsp;I can&amp;nbsp;&lt;em&gt;finally&lt;/em&gt; mark this as solved. I think to sum up the&amp;nbsp;problems faced:&lt;/p&gt;
&lt;p&gt;1. My setting of&amp;nbsp;SYNTH for the clock LFCLK. This caused the device never to sleep.&lt;/p&gt;
&lt;p&gt;2. The reason I needed SYNTH was that&amp;nbsp;there was a hardware issue within the PCB design effecting the antenna which caused BLE not to be detectable using anything other than a configuration that caused the device to not be able to sleep (or otherwise be undetectable).&lt;/p&gt;
&lt;p&gt;3. Once 2. was resolved, I could set&amp;nbsp;&lt;span&gt;LFCLK&lt;/span&gt;&amp;nbsp;to&amp;nbsp;RC Oscillator and use the recommended settings for the LFCLK&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define CLOCK_CONFIG_LF_SRC 0
#define NRFX_CLOCK_CONFIG_LF_SRC 0
#define NRF_SDH_CLOCK_LF_SRC 0
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#define NRF_SDH_CLOCK_LF_ACCURACY 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;4. The PPK1 was giving unreliable readings for power measurement meaning that the readings were showing some clearly erroneous results. Purchasing a PPK2 to test helped show the correct power reading, which averages:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;~4.55uA&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your patience with this - it&amp;#39;s been quite an puzzle on my side. Thanks for baring with me during it, I really appreciate the&amp;nbsp;support, it&amp;#39;s been top quality.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/495355?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 08:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec19c136-096b-49da-86b8-bf110176b881</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Nathan&lt;/p&gt;
&lt;p&gt;80mA is more than the nRF52 series devices are able to draw altogether I think, so this current consumption measurement can&amp;#39;t be correct I&amp;#39;m afraid, so please double check how the Power Profiler Kit is set up to measure the current here. Usually when seeing this number from a PPK, you also see the current consumption from the connected J-Link debugger chip onboard the connected DK for some reason.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d recommend using a PPK2 if you have available as it is notably easier to use and more accurate too.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/495030?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 13:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:542ff76b-d0ed-4ab0-baeb-3ac1b473e1f5</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;Hey Simon!&lt;/p&gt;
&lt;p&gt;The only issue remaining is posted &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/494234"&gt;here&lt;/a&gt;&amp;nbsp;and it&amp;#39;s drawing 80mA, not 400uA.&amp;nbsp;This number seems wildly high for the radio/BLE cycle.&lt;/p&gt;
&lt;p&gt;The sleep cycle is fine, it draws the correct/expected current.&lt;/p&gt;
&lt;p&gt;Nathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/495028?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 13:09:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13cf5762-edad-4362-b1e1-e46ff0717270</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;m taking over this case until Edvin is back now, and from reading it seems you&amp;#39;re on a good path now. Just to confirm, the issue remaining is that you&amp;#39;re seeing a ~400µA current draw &amp;quot;extra&amp;quot; when enabling the radio/BLE, correct? If so, that&amp;#39;s likely the HF crystal drawing this current, as that will draw ~400µA when running, and is required to run for the radio peripheral to work, and this will be expected. Let me know if I&amp;#39;m misunderstanding something with your issue here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/494753?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 10:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a9cd69b-9f9c-4b2a-bae1-ca4512071567</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for sharing your progress and good news. &lt;/p&gt;
[quote user="prsboy"]&lt;span style="font-size:inherit;"&gt;so I guess the only remaining thing is to work out the high power consumption when in bluetooth advertisement&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;One of my colleagues will support you with this when they are back in office next week. Thank you for your patience. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/494234?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 18:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae6ac980-9f68-4817-809f-3510f3195f96</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;Yep, this is exactly how i&amp;#39;ve got it setup, I re-ran the&amp;nbsp;test again today and got the same results.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_07_2D00_16-at-18.49.02.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_07_2D00_16-at-19.02.01.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_07_2D00_16-at-19.02.07.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;i&amp;#39;m going to start removing stuff from the&amp;nbsp;program and see if i can identify what&amp;#39;s causing this &amp;quot;active&amp;quot;state to be 80mA.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;The&amp;nbsp;good news is:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;After going back to the hardware it seemed like the original problem was around the antenna. It seems like the incorrect antenna setup was causing the device to need more power (i&amp;#39;m guessing) for me to be able to receive a signal (perhaps why SYNTH worked fine best?).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;I have had a new set of prototype devices manufactured and I have set the device up as recommended&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define CLOCK_CONFIG_LF_SRC 0
#define NRF_SDH_CLOCK_LF_SRC 0
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#define NRF_SDH_CLOCK_LF_ACCURACY 1&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;and the device now is advertising&amp;nbsp;perfectly clearly:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_07_2D00_16-at-19.12.21.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;and now with the correct/recommended LF clock settings, we can see the sleep cycle is an actual sleep cycle:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_07_2D00_16-at-19.14.06.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;so I guess the only remaining thing is to work out the high power consumption when in bluetooth advertisement&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/490269?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 12:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:555e1702-23a9-490d-93f4-127d992fac03</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Is this how you connected your custom HW?&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_ppk/UG/ppk/PPK_user_guide_PPK_on_customHW_with_nRF5xDK.html?cp=11_10_5_4"&gt;https://infocenter.nordicsemi.com/topic/ug_ppk/UG/ppk/PPK_user_guide_PPK_on_customHW_with_nRF5xDK.html?cp=11_10_5_4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If so, which one of the figures did you follow? And did you make sure that all the switches are set in the position that are noted in the figures?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I agree, your numbers seems a bit too high.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/490060?ContentTypeID=1</link><pubDate>Sat, 22 Jun 2024 00:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d11e3ffc-27cc-404a-8480-e1f11824d625</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;hello again &lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;&amp;nbsp;!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After a few attempts at trying to get the PPK1 to work,&amp;nbsp;I&amp;nbsp;managed to take some readings. This is with the previously mentioned configuration:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define CLOCK_CONFIG_LF_SRC 0
#define NRF_SDH_CLOCK_LF_SRC 0
#define NRF_SDH_CLOCK_LF_RC_CTIV 1
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
#define NRF_SDH_CLOCK_LF_ACCURACY 9&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;with 10 seconds advertising, then 120 seconds sleep. This is the graph for&amp;nbsp;one sleep/wake cycle&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_06_2D00_22-at-01.06.13.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;here is 1 seconds worth of data for the awake period&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_06_2D00_22-at-01.11.06.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and here is 1 second for the sleep period&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_06_2D00_22-at-01.10.52.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;this all seems very high to me, so perhaps i&amp;#39;ve not setup the device correctly. here&amp;#39;s how i have it setup:&lt;/p&gt;
&lt;p&gt;1. I have plugged the PPK1 into the DK.&lt;/p&gt;
&lt;p&gt;2. I have plugged in the computer to the DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. I&amp;nbsp;have used the&amp;nbsp;EXTERNAL OUT pins on the PPK1 to provide power to my custom PCBA&lt;/p&gt;
&lt;p&gt;does that make sense? if not, I can take a photo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/482725?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 07:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae4dd584-e54a-4154-8671-7a9ac724c75e</guid><dc:creator>Edvin</dc:creator><description>[quote user="prsboy"]&lt;p&gt;Will a PPK1 do? I can get ahold of one of those in a&amp;nbsp;few days.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;Yes. That works too. The PPK2 is a bit easier to use, but the PPK 1 will still give accurate readings, and perhaps show some patterns that can reveal something.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="prsboy"]How do I request a specific hardware review?[/quote]
&lt;p&gt;Just create a ticket here on DevZone (but make it private, unless you want your design to be out in the public), and add your PCB layout files and your schematics. If you didn&amp;#39;t design the HW, then talk to the people who did, and they probably know what files we are talking about. And if something is missing, the HW engineer from our side that is assigned to the ticket will know what additional files to request.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, before you do this. Did you test this on one device, or do you have several custom boards? It would be interesting to know whether this behavior is only present on one nRF Chip, or several.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/482600?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 18:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b5ba7fe-1ceb-48c6-be27-76fbfadf7793</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;Indeed, very strange.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481926"]Do you happen to have a PPK2? If so, can you please capture some graphs from running on SYNTH, and from running the RC_OSCILLATOR? A multimeter doesn&amp;#39;t really give a clear picture of what&amp;#39;s going on.[/quote]
&lt;p&gt;Will a PPK1 do? I can get ahold of one of those in a&amp;nbsp;few days.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481926"]Have you tried to capture a sniffer trace of the advertisements? You can do so using the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer for Bluetooth LE&lt;/a&gt;. If possible, can you upload one trace usnig SYNTH and one using the RC_OSCILLATOR?[/quote]
&lt;p&gt;I will get those sniffer traces uploaded for both SYNTH and RC.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481926"]If you have not already, I suggest that you also create a new ticket where you upload your schematics and PCB layout and ask for a layout review. I am not sure what it would be, but perhaps one of our HW engineers can spot something that I have not thought of.&amp;nbsp;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How do I request a specific hardware review?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/481926?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 07:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02541514-1969-4fe5-b64d-f35f6ffae73f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I find this very odd.&lt;/p&gt;
&lt;p&gt;Do you happen to have a PPK2? If so, can you please capture some graphs from running on SYNTH, and from running the RC_OSCILLATOR? A multimeter doesn&amp;#39;t really give a clear picture of what&amp;#39;s going on.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you have not already, I suggest that you also create a new ticket where you upload your schematics and PCB layout and ask for a layout review. I am not sure what it would be, but perhaps one of our HW engineers can spot something that I have not thought of.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to capture a sniffer trace of the advertisements? You can do so using the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer for Bluetooth LE&lt;/a&gt;. If possible, can you upload one trace usnig SYNTH and one using the RC_OSCILLATOR?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/481630?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 18:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8296f4c7-765a-45b3-9261-e9b881816d98</guid><dc:creator>prsboy</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481435"]&lt;p&gt;Ok, that looks good. I can&amp;#39;t tell from your snippet, but that is using the RC-oscillator, and not the SYNTH LFCLK_SRC, right?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Correct, with the RC oscillator.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481435"]When you initially tested your own application, and the issue was the high current consumption. Were you able to pick up more advertising packets then? When you were using the SYNTH source for the LF clock? Or was the performance the same?[/quote]
&lt;p&gt;Yes, when&amp;nbsp;setting the LFCLK to SYNTH everything&amp;nbsp;behaves exactly how I&amp;#39;d expect. I&amp;#39;ve attached two scans, the first one is my custom PCBA with SYNTH, the second is using the RC oscillator:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:150%;"&gt;SYNTH&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; CLOCK_CONFIG_LF_SRC &lt;/span&gt;&lt;span&gt;2&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRF_SDH_CLOCK_LF_SRC &lt;/span&gt;&lt;span&gt;2&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRF_SDH_CLOCK_LF_RC_CTIV &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRF_SDH_CLOCK_LF_ACCURACY &lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;-----&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define ADV_TIMEOUT 1000&lt;br /&gt;#define SLEEP_IN_MS 10000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_05_2D00_02-at-15.52.46.jpg" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;As you can see from the screenshot, it&amp;#39;s advertising for 10 seconds then sleeping for 10 seconds.&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:150%;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:150%;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:150%;"&gt;RC oscillator&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; CLOCK_CONFIG_LF_SRC &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRF_SDH_CLOCK_LF_SRC &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRF_SDH_CLOCK_LF_RC_CTIV &lt;/span&gt;&lt;span&gt;16&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV &lt;/span&gt;&lt;span&gt;2&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRF_SDH_CLOCK_LF_ACCURACY &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;-----&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define ADV_TIMEOUT 1000&lt;br /&gt;#define SLEEP_IN_MS 10000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_05_2D00_02-at-16.07.51.jpg" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;just to add more&amp;nbsp;intrigue into this, when running the RC oscillator, with the same configuration as above, nothing shows up.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;If I update the advertising timeout to 20 seconds,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define ADV_TIMEOUT 2000&lt;br /&gt;#define SLEEP_IN_MS 10000&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I get this:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_05_2D00_02-at-19.20.22.jpg" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Note&amp;nbsp;&lt;/strong&gt;the duration of this scan&amp;nbsp;&lt;strong&gt;38 minutes&lt;/strong&gt; and it detected 35 advertisement packets. When I use the&amp;nbsp;synthesised clock I get that in a few seconds.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Whilst this update frequency would be&amp;nbsp;&lt;em&gt;fine&lt;/em&gt;, the problem is when I then reduce the sleep to 120 seconds to preserve battery, it&amp;#39;ll be a much longer period of time&amp;nbsp;before an advertisement is picked up.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;hr /&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:150%;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:150%;"&gt;Edit:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I decided I was just going to play around with the&amp;nbsp;rc configuration. The following configuration works* best for my device:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define CLOCK_CONFIG_LF_SRC 0
#define NRF_SDH_CLOCK_LF_SRC 0
#define NRF_SDH_CLOCK_LF_RC_CTIV 1
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
#define NRF_SDH_CLOCK_LF_ACCURACY 9&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;With these values, and setting the original settings of 10 seconds advertising, 10 seconds sleep I get the following:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_05_2D00_03-at-00.15.18.jpg" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Now, it&amp;#39;s&amp;nbsp;&lt;em&gt;nowhere near&lt;/em&gt; as good as using the synthesised&amp;nbsp;lfclk, but at least i&amp;#39;m detecting multiple packets per advertisements each wake cycle.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;* As with&amp;nbsp;everything, there&amp;#39;s a cost to this - the &amp;quot;sleep&amp;quot; cycle is almost non-existent as it hops from sleep into what I imagine is a wake&amp;nbsp;calibrate&amp;nbsp;the rc oscillator. This is the power being used whilst in sleep:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ezgif_2D00_7_2D00_2fe5ea3c83.gif" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;To my&amp;nbsp;fairly uneducated mind, this&amp;nbsp;configuration change and increase&amp;nbsp;in packets received does suggest that&amp;nbsp;the rc oscillator is&amp;nbsp;not stable enough with the recommended settings -&amp;nbsp;does that make sense?&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/481435?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 06:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89ed2913-795d-4fd9-b554-c28b0c4ebfa1</guid><dc:creator>Edvin</dc:creator><description>[quote user="prsboy"]and the output looks good to me[/quote]
&lt;p&gt;Ok, that looks good. I can&amp;#39;t tell from your snippet, but that is using the RC-oscillator, and not the SYNTH LFCLK_SRC, right?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just so I didn&amp;#39;t misunderstand something. When you initially tested your own application, and the issue was the high current consumption. Were you able to pick up more advertising packets then? When you were using the SYNTH source for the LF clock? Or was the performance the same?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/481332?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 16:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3e27fe1-7e23-4d89-a8e2-067e556ac5e8</guid><dc:creator>prsboy</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481267"]Advertising every 5 seconds is pretty slow. I see that you tried experimenting with different advertising intervals. Have you tried running one of the simpler samples on your custom board? [/quote]
&lt;p&gt;I misspoke when I said this, sorry. I meant&amp;nbsp;timeout, not interval. So 5 seconds advertising (100ms interval) - sleep for 10 seconds - repeat.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481267"]I noticed a warning when building your application again, that NRFX_RNG_ENABLED was defined more than once.[/quote]
&lt;p&gt;I believe that to not be an issue, it&amp;#39;s when I was setting up the crypto libraries. I believe it&amp;#39;s when I define both&lt;/p&gt;
&lt;pre&gt;#define RNG_ENABLED 1&lt;/pre&gt;
&lt;pre&gt;#define NRFX_RNG_ENABLED 1&lt;/pre&gt;
&lt;p&gt;They&amp;#39;re the same thing?&lt;/p&gt;
&lt;p&gt;That being said,&amp;nbsp;here is the output of the application you requested:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: NRFX_RNG_ENABLED 1
&amp;lt;info&amp;gt; app: CLOCK_CONFIG_LF_SRC 0
&amp;lt;info&amp;gt; app: NRF_SDH_CLOCK_LF_SRC 0
&amp;lt;info&amp;gt; app: NRF_SDH_CLOCK_LF_RC_CTIV 16
&amp;lt;info&amp;gt; app: NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
&amp;lt;info&amp;gt; app: NRF_SDH_CLOCK_LF_ACCURACY 1
&amp;lt;info&amp;gt; app: checking LFCLK ...
&amp;lt;info&amp;gt; app: LFCLK started!
&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;info&amp;gt; CLOCK: Function: nrfx_clock_init, error code: NRF_SUCCESS.
&amp;lt;info&amp;gt; clock: Function: nrf_drv_clock_init, error code: NRF_SUCCESS.
&amp;lt;info&amp;gt; app: my addr: D0:07:B7:A4:FC:E2
&amp;lt;info&amp;gt; app: Starting temperature measurement.
&lt;/pre&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481267"]&lt;p&gt;If you are still not able to see the advertisements, can you please test the attached project? It should start blinking the LEDs every 1 second (2 second period). Does it seem correct? Or is it way to fast/slow?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I couldn&amp;#39;t quite get that project setup,&amp;nbsp;so I quickly wrote another one to run on my PCBA that does the same (blinks the light using app timers every 1000ms:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;nrf_drv_clock.h&amp;quot;
#include &amp;quot;app_timer.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;boards.h&amp;quot;

#define LED_PIN 6 // LED connected to pin 6
APP_TIMER_DEF(m_led_toggle_timer);

static void led_toggle(void * p_context)
{
    UNUSED_PARAMETER(p_context);
    nrf_gpio_pin_toggle(LED_PIN);
}

static void timers_init(void)
{
    // Initialize the app timer module.
    ret_code_t err_code = app_timer_init();
    APP_ERROR_CHECK(err_code);

    // Create the timer to toggle the LED every 1 second.
    err_code = app_timer_create(&amp;amp;m_led_toggle_timer, APP_TIMER_MODE_REPEATED, led_toggle);
    APP_ERROR_CHECK(err_code);
}

static void gpio_init(void)
{
    // Initialize the GPIO pin as output with initial value as low (LED off)
    nrf_gpio_cfg_output(LED_PIN);
    nrf_gpio_pin_clear(LED_PIN);
}

int main(void)
{
    // Initialize the LFCLK required for the timers.
    nrf_drv_clock_init();
    nrf_drv_clock_lfclk_request(NULL);

    gpio_init();
    timers_init();

    // Start the timer
    ret_code_t err_code = app_timer_start(m_led_toggle_timer, APP_TIMER_TICKS(1000), NULL);
    APP_ERROR_CHECK(err_code);

    // Enter main loop.
    while (true)
    {
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and the output looks good to me:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ezgif_2D00_2_2D00_801c775421.gif" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I got the&amp;nbsp;&lt;strong&gt;ble_app_hrs_pca10040e_s112&lt;/strong&gt; example working on&amp;nbsp;both the&amp;nbsp;DK and custom PCBA. First image is on the DK and second is on the custom&amp;nbsp;PCBA (I removed&amp;nbsp;&lt;span&gt;DEVELOP_IN_NRF52832 when on the PCBA as needed).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_04_2D00_30-at-23.10.24.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_04_2D00_30-at-23.15.32.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/481267?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 11:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fb00807-4852-4730-be3e-87f547f0d61b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="prsboy"]&lt;p&gt;2. I removed it from everywhere I found it:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/scripter-co/47fad092cd1815eed748b9d47f33a4a2"&gt;https://gist.github.com/scripter-co/47fad092cd1815eed748b9d47f33a4a2&lt;/a&gt;&lt;/p&gt;[/quote]
&lt;p&gt;ok, I was afraid you removed every instance in the SDK, but that is not the case. Good.&lt;/p&gt;
[quote user="prsboy"]I also added the debug/log&amp;nbsp;messages:[/quote]
&lt;p&gt;&lt;/p&gt;
[quote user="prsboy"]so it seems that everything is working as it&amp;nbsp;&lt;em&gt;should&lt;/em&gt;[/quote]
&lt;p&gt;These log messages are coming at a regular speed, right (Like within one second)? Or is it significantly slower when you are using RC than when you are using the SYNTH?&lt;/p&gt;
[quote user="prsboy"]&lt;em&gt;just&lt;/em&gt; removed it through SES from the preprocessor and the same result[/quote]
&lt;p&gt;Good to know. Make sure you select the &amp;quot;common&amp;quot; in the upper left corner before removing it (I tried to mark it in my screenshot). However, if you removed all like you did in the git diff, then that should have been removed as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Advertising every 5 seconds is pretty slow. I see that you tried experimenting with different advertising intervals. Have you tried running one of the simpler samples on your custom board? The ble_app_hrs, for example, isn&amp;#39;t dependent on any other peripherals (it uses UART for logging, but you can change that to RTT, or remove it). Also remember to change the clock to the RC oscillator, like you did for your application. Do you see any advertisements there?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just to explain my thoughts. Usually when there are issues with custom boards, the clock configuration is one of the first things we look into. Seeing as it works if you are using the SYNTH, this suggests that your HFCLK setup is fine, this for two reasons:&lt;/p&gt;
&lt;p&gt;1: You are able to pick up the advertising packets, meaning that the packets generated by the radio are correct. The HFCLK is used to send these packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2: The synthesized LFLCK is running of the HFLCK, meaning that - at least if the advertising interval seems correct - the HFCLK is also fine.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So this leaves the LFCLK. This is only used to keep track of the time between the packets when you are using the softdevice. So it can be quite off, as long as you are only advertising. The only issue would be that the advertising interval would be a bit off (more than the random 0-10ms added delay).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I noticed a warning when building your application again, that NRFX_RNG_ENABLED was defined more than once. It may be that your current application is slightly different than mine, but can you please try to run the attached application, and let me know what the (RTT) log says, and whether you are able to see the advertisements:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/output_5F00_edvin.zip"&gt;devzone.nordicsemi.com/.../output_5F00_edvin.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It should print the actual values (compile time) of the clock configuration definitions. Do you see something like this?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: NRFX_RNG_ENABLED 1
&amp;lt;info&amp;gt; app: CLOCK_CONFIG_LF_SRC 0
&amp;lt;info&amp;gt; app: NRF_SDH_CLOCK_LF_SRC 0
&amp;lt;info&amp;gt; app: NRF_SDH_CLOCK_LF_RC_CTIV 16
&amp;lt;info&amp;gt; app: NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
&amp;lt;info&amp;gt; app: NRF_SDH_CLOCK_LF_ACCURACY 1
&amp;lt;info&amp;gt; app: checking LFCLK ...
&amp;lt;info&amp;gt; app: LFCLK started!
&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;info&amp;gt; app: my addr: D7:72:C7:D6:4A:E1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are still not able to see the advertisements, can you please test the attached project? It should start blinking the LEDs every 1 second (2 second period). Does it seem correct? Or is it way to fast/slow?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2768.blinky.zip"&gt;devzone.nordicsemi.com/.../2768.blinky.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(pca10040e\blank\ses)&lt;/p&gt;
&lt;p&gt;Does that work on your board?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/481184?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 23:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:137810f5-ad39-4af0-a0c5-7cea8eb21907</guid><dc:creator>prsboy</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/110327/can-t-get-ble-device-to-sleep/481015"]&lt;p&gt;What exactly does that mean? I just meant that you should remove it from your preprocessor definitions&amp;nbsp;&lt;strong&gt;if&lt;/strong&gt; you are actually running on an nRF52810 chip.&lt;/p&gt;
&lt;p&gt;1: Are you actually running it on an nRF52810?&lt;/p&gt;
&lt;p&gt;2: Did you remove it from your preprocessor definitions in SES?&lt;br /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;1. Yes, I was deploying it on my PCBA (I am using the NRF52DK to flash the PCBA).&lt;/p&gt;
&lt;p&gt;2. I removed it from everywhere I found it:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://gist.github.com/scripter-co/47fad092cd1815eed748b9d47f33a4a2"&gt;https://gist.github.com/scripter-co/47fad092cd1815eed748b9d47f33a4a2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But I also did exactly what you said in your message and&amp;nbsp;&lt;em&gt;just&lt;/em&gt; removed it through SES from the preprocessor and the same result (no BLE signal detected).&lt;/p&gt;
&lt;p&gt;---------&lt;/p&gt;
&lt;p&gt;I also added the debug/log&amp;nbsp;messages:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: checking LFCLK ...
&amp;lt;info&amp;gt; app: LFCLK started!
&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;info&amp;gt; CLOCK: Function: nrfx_clock_init, error code: NRF_SUCCESS.
&amp;lt;info&amp;gt; clock: Function: nrf_drv_clock_init, error code: NRF_SUCCESS.
&amp;lt;info&amp;gt; app: Starting temperature measurement.
&amp;lt;info&amp;gt; app: Reading temperature data.
&amp;lt;info&amp;gt; app: Calculated temperature: 22.66 C
&amp;lt;info&amp;gt; app: number: 2266
&amp;lt;info&amp;gt; app: Starting humidity measurement.
&amp;lt;info&amp;gt; app: Reading humidity data.
&amp;lt;info&amp;gt; app: number: 5953
&amp;lt;info&amp;gt; app: BLE EVENT
&amp;lt;info&amp;gt; app: start ble
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;so it seems that everything is working as it&amp;nbsp;&lt;em&gt;should&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;---- 5 hours later&amp;nbsp;&lt;span&gt;----&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Oh!&lt;/span&gt;&amp;nbsp;I&amp;#39;ve spent the&amp;nbsp;the whole day looking into this and&amp;nbsp;I&amp;#39;ve noticed that the custom board&amp;nbsp;&lt;em&gt;is&lt;/em&gt; actually advertising - despite the interval&amp;nbsp;set to advertise every 5 seconds (as an example),&amp;nbsp;when I scan for the device using both&amp;nbsp;laptop/phone, it takes a&amp;nbsp;&lt;strong&gt;very&lt;/strong&gt; long time to pick up the signal (5 mins after started searching):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1714434174467v1.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;the DK is picked up straight away. I just happened to notice this after I changed the configuration of NRF Connect to not timeout after 2 minutes and then notice it show up 5 minutes&amp;nbsp;later.&lt;/p&gt;
&lt;p&gt;So I guess the question&amp;nbsp;&lt;em&gt;now&lt;/em&gt; is,&amp;nbsp;what could cause the BLE advertising to be so intermittent when deployed to the&amp;nbsp;custom PCBA when using RC&amp;nbsp;oscillator? The signal is not regular - the advertising packets are&amp;nbsp;received very&amp;nbsp;sporadically and unreliably.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;edit:&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve played around with the advertising interval and timeout and&amp;nbsp;increasing/decreasing the `ble_adv_fast_interval` makes no&amp;nbsp;difference to the ability to pick anything up. Even when I set&amp;nbsp;ble_adv_fast_timeout = 0 it still behaves the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/481015?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 09:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa969b1c-e80b-4503-a725-7a991a54636c</guid><dc:creator>Edvin</dc:creator><description>[quote user="prsboy"]I have completely removed all reference of&amp;nbsp;&lt;span&gt;DEVELOP_IN_NRF52832.&lt;/span&gt;[/quote]
&lt;p&gt;What exactly does that mean? I just meant that you should remove it from your preprocessor definitions&amp;nbsp;&lt;strong&gt;if&lt;/strong&gt; you are actually running on an nRF52810 chip.&lt;/p&gt;
&lt;p&gt;1: Are you actually running it on an nRF52810?&lt;/p&gt;
&lt;p&gt;2: Did you remove it from your preprocessor definitions in SES?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1714381184094v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="prsboy"]#define NRFX_CLOCK_CONFIG_LOG_ENABLED 1
#define NRFX_CLOCK_CONFIG_LOG_LEVEL 4[/quote]
&lt;p&gt;From apply_old_config.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if defined(CLOCK_CONFIG_LOG_ENABLED)
#undef NRFX_CLOCK_CONFIG_LOG_ENABLED
#define NRFX_CLOCK_CONFIG_LOG_ENABLED  CLOCK_CONFIG_LOG_ENABLED
#endif
#if defined(CLOCK_CONFIG_LOG_LEVEL)
#undef NRFX_CLOCK_CONFIG_LOG_LEVEL
#define NRFX_CLOCK_CONFIG_LOG_LEVEL  CLOCK_CONFIG_LOG_LEVEL
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So try to set CLOCK_CONFIG_LOG_ENABLED = 1 as well, and CLOCK_CONFIG_LOG_LEVEL = 4.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can verify the values of NRFX_CLOCK_CONFIG_LOG_ENABLED by printing it to your log from your main.c file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_LOG_INFO(&amp;quot;clock log enabled: %d, log_level: %d&amp;quot;, NRFX_CLOCK_CONFIG_LOG_ENABLED, NRFX_CLOCK_CONFIG_LOG_LEVEL);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another check you can do in your application is to add this before you initiate your timers:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void check_clock_source(void)
{
  NRF_LOG_INFO(&amp;quot;checking LFCLK ...&amp;quot;);
  NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
  while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == false)
  {
    // wait...
  }
  NRF_LOG_INFO(&amp;quot;LFCLK started!&amp;quot;);

}

int main(void)
{
    ...
    LOG_INIT()
    ...
    check_clock_source();
    ...
    ble_stack_init()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And see if that function returns, or if it is stuck. I believe it should return, because you shouldn&amp;#39;t be able to initiate the softdevice without an LFCLK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t figure it out, can you please upload the updated application that can reproduce the issue you are seeing on a DK?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/480772?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 20:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04415e8a-4f7b-41c6-a12c-b60a69d8a56c</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;I have completely removed all reference of&amp;nbsp;&lt;span&gt;DEVELOP_IN_NRF52832.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When i try and deploy it on my custom PCBA I can see logs&amp;nbsp;as usual:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;info&amp;gt; app: Starting temperature measurement.
&amp;lt;info&amp;gt; app: Reading temperature data.
&amp;lt;info&amp;gt; app: Calculated temperature: 22.64 C
&amp;lt;info&amp;gt; app: number: 2264
&amp;lt;info&amp;gt; app: Starting humidity measurement.
&amp;lt;info&amp;gt; app: Reading humidity data.
&amp;lt;info&amp;gt; app: Calculated humidity: 64.30%
&amp;lt;info&amp;gt; app: number: 6430
&amp;lt;info&amp;gt; app: BLE EVENT
&amp;lt;info&amp;gt; app: start ble
&amp;lt;info&amp;gt; app: BLE EVENT
&amp;lt;info&amp;gt; app: Advertising event: Idle
&amp;lt;info&amp;gt; app: asleep
&amp;lt;info&amp;gt; app: Awake and start advertising
&amp;lt;info&amp;gt; app: Starting temperature measurement.
&amp;lt;info&amp;gt; app: Reading temperature data.
&amp;lt;info&amp;gt; app: Calculated temperature: 22.75 C
&amp;lt;info&amp;gt; app: number: 2275
&amp;lt;info&amp;gt; app: Starting humidity measurement.
&amp;lt;info&amp;gt; app: Reading humidity data.
&amp;lt;info&amp;gt; app: Calculated humidity: 63.59%
&amp;lt;info&amp;gt; app: number: 6359
&amp;lt;info&amp;gt; app: BLE EVENT
&amp;lt;info&amp;gt; app: start ble
&amp;lt;info&amp;gt; app: BLE EVENT
&amp;lt;info&amp;gt; app: Advertising event: Idle
&amp;lt;info&amp;gt; app: asleep&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but&amp;nbsp;I&amp;#39;m unable to pick anything up when scanning for the device which is&amp;nbsp;very strange, the device behaves exactly how it does when I set the LFCLK to XTAL, apart from I can&amp;#39;t detect the BLE signal. Is there any way I&amp;#39;m able to check the state of the LFCLK? I tried setting&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;#define NRFX_CLOCK_CONFIG_LOG_ENABLED 1
#define NRFX_CLOCK_CONFIG_LOG_LEVEL 4&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;but no additional logs are output to the console (as&amp;nbsp;seen from the console output above).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/480648?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 10:46:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c078370-6d09-4b48-871e-5c3fcf31f299</guid><dc:creator>Edvin</dc:creator><description>[quote user="prsboy"]&lt;p&gt;LFCLK&amp;nbsp;should not be needed then.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;In that case, I don&amp;#39;t see any benefits from using an LFXTAL, so at least if you haven&amp;#39;t designed it in already, I wouldn&amp;#39;t bother.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With the configuration that you have there, when you are not able to detect the BLE device, does the log say anything relevant?&lt;/p&gt;
&lt;p&gt;Is the BLE stack enabled as it should? Does the application reach the advertising_start() function? Do you see any logs at all if you enable logging and use your custom board? Did you remember to remove the DEVELOP_IN_NRF52832 preprocessor definition?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/480400?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 09:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d9384ae-7352-4c34-a26b-748ec08fe9d4</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;That&amp;#39;s interesting, it sounds like (as I&amp;#39;m just using BLE advertising) that a external LFCLK&amp;nbsp;should not be needed then.&lt;/p&gt;
&lt;p&gt;I had set these from reading through the &lt;a href="https://content.u-blox.com/sites/default/files/RC-OscillatorConfiguration_AppNote_UBX-20009242.pdf"&gt;following document&lt;/a&gt; which&amp;nbsp;was quite useful (see section for &amp;quot;Internal RC low-frequency oscillator (LFRC)&amp;quot;). The problem I have is that when I set (as you mentioned in your post), the configuration:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define CLOCK_CONFIG_LF_SRC 0
#define NRFX_CLOCK_CONFIG_LF_SRC 0
#define NRF_SDH_CLOCK_LF_SRC 0
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#define NRF_SDH_CLOCK_LF_ACCURACY 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the BLE device is no longer detectable. What I mean by this is that I can no longer detect the signal using my laptop or mobile phone (both&amp;nbsp;are using&amp;nbsp;nRF Connect bluetooth app).&lt;/p&gt;
&lt;p&gt;It sounds to me like you&amp;#39;re saying this&amp;nbsp;&lt;em&gt;should&lt;/em&gt; work. My assumption was that it was a hardware issue which caused the &lt;span&gt;RC oscillator to not be stable enough... I will just double check this with&amp;nbsp;one of the example applications and updating the above configuration.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/480365?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 08:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e406511-640a-4843-acfe-a72fb94fc212</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Depending on your application you may or may not benefit from adding an LFXTAL. The disadvantage of an external LFCLK is that you have one more component that will draw current, but the advantage is that if you are (often) in a connection, you will have a more accurate LFCLK, which means that the radio will be able to more accurately determine when it will receive a radio packet, which means that it can narrow down the timeslot where the radio will be active (in RX mode).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is however only when you are in a connection. If your application is a beacon that is only advertising, the increased accuracy of the LFCLK doesn&amp;#39;t come with any benefits.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/480361?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 08:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e82bf873-c773-4620-bc70-db3f4eb1a70b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nathan,&lt;/p&gt;
&lt;p&gt;Right. An external LFXTAL is one way (I assume you meant externla LF clock, and not HF clock, since you probably have an external HF clock already. That one is mandatory, but the LF XTAL is optional).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, the SYNTH is an easy way to make sure that the LFCLK is working properly, but this is not intended for production, as it is way too power-hungry.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me try to get this straight, so that we get the RC oscillator up and running:&lt;/p&gt;
&lt;p&gt;There are several sets of definitions in sdk_config.h regarding the clock configuration. If you search this file for &amp;quot;LF_SRC&amp;quot;, you will find:&lt;/p&gt;
&lt;p&gt;NRFX_CLOCK_CONFIG_LF_SRC&lt;br /&gt;CLOCK_CONFIG_LF_SRC&lt;br /&gt;NRF_SDH_CLOCK_LF_SRC&lt;br /&gt;&lt;br /&gt;Try to make these align. You can check the file apply_old_config.h to see how NRFX_CLOCK_CONFIG_LF_SRC and CLOCK_CONFIG_LF_SRC work together, but I usually just set them equal to one another, so I don&amp;#39;t need to remember which one overwrites the other.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The NRF_SDH_CLOCK_LF_SRC is not part of apply_old_config.h, but it is used by the softdevice. When this is set to 0 (NRF_CLOCK_LF_SRC_RC, you need to set&amp;nbsp;NRF_SDH_CLOCK_LF_RC_CTIV,&amp;nbsp;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV and&amp;nbsp;NRF_SDH_CLOCK_LF_ACCURACY accordingly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is not very intuitive, but if you look in nrf_sdm.h (which will be included in you application project), you can look at the declaration of the struct nrf_clock_lf_cfg_t. In the parameter description it says:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t rc_temp_ctiv;   /**&amp;lt;  Only for ::NRF_CLOCK_LF_SRC_RC: How often (in number of calibration
                                intervals) the RC oscillator shall be calibrated if the temperature
                                hasn&amp;#39;t changed.
                                     0: Always calibrate even if the temperature hasn&amp;#39;t changed.
                                     1: Only calibrate if the temperature has changed (legacy - nRF51 only).
                                     2-33: Check the temperature and only calibrate if it has changed,
                                           however calibration will take place every rc_temp_ctiv
                                           intervals in any case.

                                @note Must be 0 if source is not ::NRF_CLOCK_LF_SRC_RC.

                                @note For nRF52, the application must ensure calibration at least once
                                      every 8 seconds to ensure +/-500 ppm clock stability. The
                                      recommended configuration for ::NRF_CLOCK_LF_SRC_RC on nRF52 is
                                      rc_ctiv=16 and rc_temp_ctiv=2. This will ensure calibration at
                                      least once every 8 seconds and for temperature changes of 0.5
                                      degrees Celsius every 4 seconds. See the Product Specification
                                      for the nRF52 device being used for more information.*/&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So if you have NRF_CLOCK_LF_SRC_RC (0), then you must also set:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_SDH_CLOCK_LF_RC_CTIV 16
NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
NRF_SDH_CLOCK_LF_ACCURACY 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If not, the initialization of the softdevice will fail, as you can see from nrf_sdh.c, line 76:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if (   (NRF_SDH_CLOCK_LF_SRC      == NRF_CLOCK_LF_SRC_RC)          \
     &amp;amp;&amp;amp; (NRF_SDH_CLOCK_LF_ACCURACY != NRF_CLOCK_LF_ACCURACY_500_PPM))
    #warning Please select NRF_CLOCK_LF_ACCURACY_500_PPM when using NRF_CLOCK_LF_SRC_RC
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try that, and let me know whether it works.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/480271?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 15:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a449c2d-a29a-4616-9a8b-fc6b88dce3b7</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;Hey Edvin!&lt;/p&gt;
&lt;p&gt;I set the LFCLK source to RC but unfortunately I was reminded as to why it was set to SYNTH to start with - without setting it to SYNTH&amp;nbsp;the BLE module would not work.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking at getting a hardware review (and adding a external HF clock to the PCBA).&lt;/p&gt;
&lt;p&gt;Nathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get BLE device to sleep</title><link>https://devzone.nordicsemi.com/thread/479698?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 12:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35582797-3be8-4ed3-8ce9-4d253aacb946</guid><dc:creator>prsboy</dc:creator><description>&lt;p&gt;Amazing, thank you so much! I&amp;#39;ll&amp;nbsp;give this a go as soon as I get back to my DK and let you know the results!&lt;/p&gt;
&lt;p&gt;I honestly would&amp;nbsp;&lt;em&gt;never&lt;/em&gt; have been able to work this out - it&amp;#39;s interesting that setting&amp;nbsp;&lt;span&gt;LFCLK to SYNTH causes this behaviour!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Quick question,&amp;nbsp;what&amp;#39;s the best way to conditionally include&amp;nbsp;DEVELOP_IN_NRF52832? I will alternate between the DK and&amp;nbsp;my PCBA, so would prefer not to have to constantly switch.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;edit: apologies for&amp;nbsp;making your life more difficult by modifying the&amp;nbsp;LFCLK value inline instead of defining it at the top!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>