<?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 set CONFIG_BOARD_ENABLE_DCDC=n on custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117930/can-t-set-config_board_enable_dcdc-n-on-custom-board</link><description>Hi there, 
 I have a small custom board with the nRF52810 that uses the LDO instead of the DC-DC, it also doesn&amp;#39;t have the 32KHz LF crystal. 
 Was able to add this to the defconfig file / prj.conf which compiles fine: CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jan 2025 13:09:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117930/can-t-set-config_board_enable_dcdc-n-on-custom-board" /><item><title>RE: Can't set CONFIG_BOARD_ENABLE_DCDC=n on custom board</title><link>https://devzone.nordicsemi.com/thread/519072?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 13:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc7c481d-9976-4ad3-bddf-467b45686cb2</guid><dc:creator>alex101</dc:creator><description>&lt;p&gt;I think it&amp;#39;s solved. went back to selecting the board configuration as the 52810 DK, edited the prj.conf file with this:&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=n&lt;br /&gt;&lt;br /&gt;Found from here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/98907/after-setting-config_clock_control_nrf_k32src_rc-the-32mhz-start-working-from-rc-instead-from-xtal"&gt;after setting CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC the 32mhz start working from rc instead from XTAL&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And then in nrf52dk_nrf52810.dts changed the regulator setting:&lt;br /&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;reg&lt;/span&gt;&lt;span&gt; {&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;//regulator-initial-mode = &amp;lt;NRF5X_REG_MODE_DCDC&amp;gt;;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;regulator-initial-mode&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;NRF5X_REG_MODE_LDO&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;br /&gt;&lt;/span&gt;};&lt;br /&gt;&lt;br /&gt;Probably best to make a copy of the board config and make my own board config based on it.&lt;br /&gt;&lt;br /&gt;Strangely I do always have to unplug the USB and reconnect for the custom PCB to reset properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't set CONFIG_BOARD_ENABLE_DCDC=n on custom board</title><link>https://devzone.nordicsemi.com/thread/518361?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 04:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ea8eaad-842a-4eb1-baec-849ce9c2a495</guid><dc:creator>alex101</dc:creator><description>&lt;p&gt;Hi, this is the result:&lt;br /&gt;0x40000578: 00000000&lt;br /&gt;&lt;br /&gt;I&amp;#39;m new to this environment, using nRF Connect SDK v2.8.0 on&amp;nbsp;Visual Studio Code.&lt;br /&gt;&lt;br /&gt;While I have you, is there a delay_ms function available? I think the small nRF52810 custom board I&amp;#39;m using kind of is working but something isn&amp;#39;t quite right so it would be good to validate if the clock is set correctly. (Wireless packet received takes 8s to process and turn on an LED when not debugging but when debugging and holding down F10 it updates quicker. If pressing F5 a few times, it stalls. On the DK itself, it works perfectly). Might need to open another support request if needed. &lt;br /&gt;&lt;br /&gt;(Edit: I reflashed the DK board and the 8s lag was also present on it, reverted back to the old files I have and the DK board works so now I need to figure out what happened - code didn&amp;#39;t change at all).&lt;br /&gt;It seems like adding &amp;quot;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&amp;quot; causes the slow down but I think that line is needed if you don&amp;#39;t have the 32.KHz crystal populated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't set CONFIG_BOARD_ENABLE_DCDC=n on custom board</title><link>https://devzone.nordicsemi.com/thread/518306?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2025 16:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8295731e-74ba-4cdb-84d8-98ef4a15feca</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What do you see if you run this command&lt;strong&gt;&amp;nbsp;nrfjprog --memrd 0x40000578 --n 4?&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't set CONFIG_BOARD_ENABLE_DCDC=n on custom board</title><link>https://devzone.nordicsemi.com/thread/518018?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 17:23:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1898ac04-48ce-4d76-aacb-4339ddbc8a42</guid><dc:creator>X4ce</dc:creator><description>&lt;p&gt;Which NCS you&amp;#39;re using? This &lt;a href="https://docs.zephyrproject.org/latest/releases/migration-guide-4.0.html"&gt;link&lt;/a&gt; gives:&lt;/p&gt;
&lt;p&gt;Internal regulators present in nRF52/53 series can now be configured using devicetree. The Kconfig options &lt;a class="reference internal" title="CONFIG_SOC_DCDC_NRF52X" href="https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SOC_DCDC_NRF52X"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_SOC_DCDC_NRF52X&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;, &lt;a class="reference internal" title="CONFIG_SOC_DCDC_NRF52X_HV" href="https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SOC_DCDC_NRF52X_HV"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_SOC_DCDC_NRF52X_HV&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;, &lt;a class="reference internal" title="CONFIG_SOC_DCDC_NRF53X_APP" href="https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SOC_DCDC_NRF53X_APP"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_SOC_DCDC_NRF53X_APP&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;, &lt;a class="reference internal" title="CONFIG_SOC_DCDC_NRF53X_NET" href="https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SOC_DCDC_NRF53X_NET"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_SOC_DCDC_NRF53X_NET&lt;/span&gt;&lt;/code&gt;&lt;/a&gt; and &lt;a class="reference internal" title="CONFIG_SOC_DCDC_NRF53X_HV" href="https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SOC_DCDC_NRF53X_HV"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_SOC_DCDC_NRF53X_HV&lt;/span&gt;&lt;/code&gt;&lt;/a&gt; selected by board-level Kconfig options have been deprecated.&lt;/p&gt;
&lt;p&gt;Example for nRF52 series:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* configure REG/REG1 in DC/DC mode */
&amp;amp;reg/reg1 {
    regulator-initial-mode = &amp;lt;NRF5X_REG_MODE_DCDC&amp;gt;;
};

/* enable REG0 (HV mode) */
&amp;amp;reg0 {
    status = &amp;quot;okay&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Look for reg or reg1 nodes in dts of your specific SoC and use that node.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't set CONFIG_BOARD_ENABLE_DCDC=n on custom board</title><link>https://devzone.nordicsemi.com/thread/517967?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 14:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b9dbd7a-9f17-4eed-badd-ceff4feb53ef</guid><dc:creator>alex101</dc:creator><description>&lt;p&gt;Thank you for the quick reply! I added it and it seems to compile but I don&amp;#39;t know if it&amp;#39;s been set properly?&lt;/p&gt;
&lt;p&gt;I say that because if I click on &amp;quot;SOC_DCDC_NRF52X&amp;quot; and go to it&amp;#39;s definition it says:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;SOC_DCDC_NRF52X&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;bool&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;select&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;DEPRECATED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; This option is deprecated, use devicetree instead. Example&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; configuration:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;reg/reg1 {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regulator-initial-mode = &amp;lt;NRF5X_REG_MODE_DCDC&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Enable nRF52 series System on Chip DC/DC converter.&lt;br /&gt;&lt;br /&gt;And then if I try to add the&amp;nbsp;&amp;amp;reg/reg1 to the device tree dts file, it says this register doesn&amp;#39;t exist.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't set CONFIG_BOARD_ENABLE_DCDC=n on custom board</title><link>https://devzone.nordicsemi.com/thread/517832?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 04:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8287673a-c3e5-4ffb-bb57-c5b7dd5a7181</guid><dc:creator>X4ce</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try adding a filename &amp;quot;Kconfig&amp;quot; in your custom board folder with following contents:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;config BOARD_ENABLE_DCDC
    bool &amp;quot;DCDC mode&amp;quot;
    select SOC_DCDC_NRF52X
    default n
    depends on BOARD_YOUR_BOARD_NAME&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>