<?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>What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119729/what-exactly-is-required-to-run-usb-on-an-nrf52840-without-an-external-crystal</link><description>Long story short, I trusted the datasheet (big mistake) where it says an external crystal is optional. In previous builds, I had an external crystal onboard anyway, so this issue never arose, but now I don&amp;#39;t want an external crystal, but it turns out</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Mar 2025 15:10:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119729/what-exactly-is-required-to-run-usb-on-an-nrf52840-without-an-external-crystal" /><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/527005?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 15:10:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e7ff5dd-c929-4693-9556-0dd8c917151c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Bk37"]One last question as an aside, I assume that BLE will still require a 32.768 KHz external crystal, correct? Or is there a way to make BLE work with this configuration as well? I can open a new question thread if necessary, just curious.[/quote]
&lt;p&gt;BLE does indeed require a LFCLK source, but it does not need to be a physical crystal.&lt;/p&gt;
&lt;p&gt;You can use the 32k RC oscillator for this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is already handled with your previous setting of the LF clk source:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So if you want to evaluate some bluetooth-samples, remember to include this configuration in addition to your DCDC-config.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/527003?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 14:58:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e0b39be-c161-4911-ac87-1d38352e02ac</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;One last question as an aside, I assume that BLE will still require a 32.768 KHz external crystal, correct? Or is there a way to make BLE work with this configuration as well? I can open a new question thread if necessary, just curious.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="highlighter--hover-tools" style="display:none;"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526996?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 14:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:535666b5-02c7-4b12-8caf-f047b0239635</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for the kind words. I am always happy to help out, and I am so glad to hear that you got it working!&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526994?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 14:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b3a9bc2-8b09-4b88-bf4b-6d01f85701c1</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;This fixed it! Thank you very much! Since you mentioned the DCDC stuff, I also realized that I had a shared board file for this and another project that used some of the DC-DC components, so I removed that file, added your code, and it worked.&lt;/p&gt;
&lt;p&gt;Thanks mate! Nordic support is #1 by far, the main reason I will stay loyal to the brand.&lt;/p&gt;
&lt;div id="highlighter--hover-tools" style="display:none;"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526990?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 14:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a75a546d-2961-4430-ba35-095139d3586a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, I oversaw that your device is in LDO operation.&lt;/p&gt;
&lt;p&gt;If you are on the latest NCS v2.9.0, you should add this to the overlay (example: nrf52840dk_nrf52840.overlay) file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;reg1 {
	regulator-initial-mode = &amp;lt;NRF5X_REG_MODE_LDO&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or if you are using older version, you can add this to your prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOARD_ENABLE_DCDC_HV=n
CONFIG_BOARD_ENABLE_DCDC=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&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: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526979?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 14:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e171c3a-0bb3-44c7-9d6d-cc0c8aa37328</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;I added that line to the prj.conf, but still no change. When the device is plugged into USB, it&amp;#39;s receiving power, and VDD is even outputting the proper voltage, but no device is showing up on my PC. Again, the only difference between this and my other functional board is the external 32 KHz oscillator.&lt;/p&gt;
&lt;div id="highlighter--hover-tools" style="display:none;"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526960?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2667d016-8db6-4012-9208-0d39ac247d86</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is great! The module does indeed have a 32 MHz xtal in-place.&lt;/p&gt;
[quote user="Bk37"]Should USB still will under this layout? As far as my research tells me, if the 32 MHz crystal would suffice for USB, it would be automatic, like it&amp;#39;s automatic when a 32 KHz crystal is connection.[/quote]
&lt;p&gt;R30 and R31 should be 0-ohm, as the resistors are internal to the nRF.&lt;/p&gt;
&lt;p&gt;Other than that, I do not see any issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;XTAL will be requested by the driver itself, so no worries there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To select internal 32k RC oscillator for your LFCLK, please&amp;nbsp;append this option to your project:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526946?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 13:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aca382e-0c9e-41dd-8dc0-3d95af1828c4</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;I am using a 3rd party board with this chip, after doing some research, it turns out that it does in fact include an external 32 MHz crystal, it does NOT include a 32 KHz crystal.&lt;/p&gt;
&lt;p&gt;Should USB still will under this layout? As far as my research tells me, if the 32 MHz crystal would suffice for USB, it would be automatic, like it&amp;#39;s automatic when a 32 KHz crystal is connection.&lt;/p&gt;
&lt;p&gt;This is the schematic we are using:&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-2025_2D00_03_2D00_12-063157.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="highlighter--hover-tools" style="display:none;"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526916?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:34:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d33fb08f-960f-41a5-9a3a-ce127c3a33cc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Bk37"]Why does it specifically mark a 32 KHz crystal as &amp;quot;optional&amp;quot; if a crystal is not optional at all?[/quote]
&lt;p&gt;32 &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;MHz&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;is required, while the 32.768 kHz is optional. Please see the former:&lt;/p&gt;
[quote user="hkn"]&lt;p&gt;As mentioned in the comments here, the 32.768 kHz external crystal is optional, but the 32 MHz one is required:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/ref_circuitry.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/ref_circuitry.html&lt;/a&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please confirm your circuitry?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526900?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 11:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a037355d-423e-4e73-bed5-c1ae0b40e31c</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;But doesn&amp;#39;t the MCU have a built in crystal/clock? I assume I cannot reliably use the built-in ones for USB or BLE?&lt;/p&gt;
&lt;p&gt;Why does it specifically mark a 32 KHz crystal as &amp;quot;optional&amp;quot; if a crystal is not optional at all? That doesn&amp;#39;t make sense to me.&lt;/p&gt;
&lt;div id="highlighter--hover-tools" style="display:none;"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="highlighter--hover-tools" style="display:none;"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526899?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 11:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea76b379-b130-4fdf-b9bb-42d73ad7d775</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As mentioned in the comments here, the 32.768 kHz external crystal is optional, but the 32 MHz one is required:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/ref_circuitry.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/ref_circuitry.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526892?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 11:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:219609be-051a-4dd7-b91c-13c835b690a0</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;I do not have an external crystal present, no. The datasheet only marks an external crystal as &amp;quot;optional&amp;quot; under USB power. I only have whatever is present within the nRF52840.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526889?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 11:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c942595e-4261-468c-84ca-118a471d9894</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have a 32 MHz xtal present on your design?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526884?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 10:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d55405a3-624c-4891-8a38-6df2c65cc66c</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;On my old builds (which ran perfectly), I just used a single external 32 KHz crystal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What exactly is required to run USB on an nRF52840 without an external crystal?</title><link>https://devzone.nordicsemi.com/thread/526825?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 21:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d016106b-482d-4df4-a0d9-0ba748c95858</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Which crystal did you omit? The 32kHz one is optional, the 32MHz one is mandatory for BTLE.&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>