<?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>Configure and Debug Clock Control</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122085/configure-and-debug-clock-control</link><description>Hello! 
 I don&amp;#39;t know if there is a way to configure a nrf52832-QFAA&amp;#39;s clock source on my custom board software-wise. 
 Just a disclaimer but please correct me if I&amp;#39;m wrong anywhere because there is little to no reliable tutorial for clock control and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jun 2025 12:07:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122085/configure-and-debug-clock-control" /><item><title>RE: Configure and Debug Clock Control</title><link>https://devzone.nordicsemi.com/thread/538812?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 12:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9ff1bc4-b2e9-4054-b657-b5c5f70ae0d5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Jackie,&lt;/p&gt;
&lt;p&gt;Thanks for the update. This confirms that the crystal oscillator is able to start up. If you need to request the HFXO clock in your actual application, I recommend using the onoff API as shown here:&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/fc00e381aa120b6348d1f7afac5884e9e831d8f3/samples/peripheral/radio_test/src/main.c#L21"&gt;https://github.com/nrfconnect/sdk-nrf/blob/fc00e381aa120b6348d1f7afac5884e9e831d8f3/samples/peripheral/radio_test/src/main.c#L21&lt;/a&gt;. This will increment the request count for the crystal oscillator ensuring that the HFXO cannot be released by other SDK modules.&lt;/p&gt;
&lt;p&gt;Note that keeping the HFXO active will make the idle current go from ~2-3 uA to ~200 uA.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;idar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure and Debug Clock Control</title><link>https://devzone.nordicsemi.com/thread/538732?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 03:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc9f22a8-baf2-4e7c-9e30-645523c49895</guid><dc:creator>notkuroneko</dc:creator><description>&lt;p&gt;Hello Vidar!&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, we were testing the crystal rampup code on both the old and new revision of the board.&lt;/p&gt;
&lt;p&gt;So far the clock initiates just fine with the snippet you provided. I replaced that snippet into the clock startup method in our firmware and it seems to be working just fine!&lt;/p&gt;
&lt;p&gt;Once again, thank you for your support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure and Debug Clock Control</title><link>https://devzone.nordicsemi.com/thread/538436?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 13:40:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de5c08e3-f453-42a0-b006-575208a5176e</guid><dc:creator>notkuroneko</dc:creator><description>&lt;p&gt;Thank you Vidar for your support!&lt;/p&gt;
&lt;p&gt;We have a few prototypes for our hardware at the moment, i will try to run that on the boards that are not functioning.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll assume that the code for starting the clock manually should work and I&amp;#39;ll debug it alongside your snippet.&lt;/p&gt;
&lt;p&gt;Once again, thank you! I&amp;#39;ll update once we get this running.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jackie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure and Debug Clock Control</title><link>https://devzone.nordicsemi.com/thread/538417?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 12:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cc774e0-6a84-4a4a-b9cb-6398db66b481</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Jackie,&lt;/p&gt;
&lt;p&gt;The CPU and other peripheral&amp;#39;s requiring the HF clock&amp;nbsp;runs by default from the internal RC oscillator (HFINT) and the&amp;nbsp;&lt;span&gt;clock_control_on() is to request the more accurate crystal oscillator (HFXO), but it seems like it is failing to ramp up as it&amp;#39;s returns with -EAGAIN (-11). Could you please try to run the snippet I posted here and see if the program is able to exit the while loop&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102119/mpsl-assert-112-2134-if-using-multiple-ble-communication/437657"&gt;RE: MPSL ASSERT: 112, 2134 if using multiple BLE communication&lt;/a&gt;&amp;nbsp;&amp;nbsp;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>