<?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>How to enable VDDH (REG0) DC/DC properly in Zephyr?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74094/how-to-enable-vddh-reg0-dc-dc-properly-in-zephyr</link><description>Hi, 
 Could you please advice us how to do that properly? 
 We&amp;#39;re using nRF52840 and nRF Connect SDK 1.5.0. 
 So, nrfx_power_init() function is called only in usb_init(), with that macro check: 
 #if NRFX_POWER_SUPPORTS_DCDCEN_VDDH .dcdcenhv = IS_ENABLED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Mar 2023 12:54:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74094/how-to-enable-vddh-reg0-dc-dc-properly-in-zephyr" /><item><title>RE: How to enable VDDH (REG0) DC/DC properly in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/413540?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 12:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce28890c-d206-4c11-8576-73204e673ddf</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The kConfig part is clear &lt;br /&gt;only still unclear &lt;br /&gt;why the #&lt;span&gt;define NRF_POWER_HAS_DCDCEN_VDDH is still needed in the code of Zephyr.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable VDDH (REG0) DC/DC properly in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/412678?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 09:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f68d54c8-1a19-450c-aed1-04e8aca36e9b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the pull request and commit for thie kconfig option:&lt;br /&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/39328"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/39328&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/39328/commits/d6882c6574c11a4446035a7eb8a933b0afea7e83"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/39328/commits/d6882c6574c11a4446035a7eb8a933b0afea7e83&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s enabled typically by the board file I can see.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable VDDH (REG0) DC/DC properly in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/412594?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 17:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:425a28ba-737d-4bc9-8cbf-34ec1053f78d</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Hi Kenneth&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;to include the code from nordicsemi_nrf52_init().&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;would it be sufficient&amp;nbsp; to add somewhere to main.c&lt;/p&gt;
&lt;p&gt;#define NRFX_POWER_ENABLED&lt;br /&gt;#define NRFX_POWER_CONFIG_DEFAULT_DCDCEN&lt;br /&gt;#define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV&lt;/p&gt;
&lt;p&gt;and then in ncs/zephyr&amp;nbsp;&lt;br /&gt;&lt;br /&gt;CONFIG_NRFX_POWER=y&lt;br /&gt;&amp;nbsp;to trigger the build of the module nrfx_power.c&lt;/p&gt;
&lt;p&gt;CONFIG_SOC_DCDC_NRF52X=y&lt;br /&gt;CONFIG_SOC_DCDC_NRF52X_HV=y&lt;br /&gt;&lt;span&gt;to trigger the&amp;nbsp;&lt;/span&gt;&lt;span&gt;b&lt;/span&gt;&lt;span&gt;uild of the module soc.c in zephyr&lt;br /&gt;&lt;br /&gt;i will try to implement &amp;amp; test this soon.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable VDDH (REG0) DC/DC properly in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/412590?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 17:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fece1034-6259-4a72-bf7d-c6cb2544f579</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Hi Kenneth &lt;br /&gt;Any update on this topic?&lt;br /&gt;&lt;br /&gt;The file: ncs/zephyr/soc/arm/nordic_nrf/nrf52/soc.c still has that define&amp;nbsp;NRF_POWER_HAS_DCDCEN_VDDH &lt;br /&gt;that is not zephyr kconfig, so who&amp;nbsp;activates that define and from where?&lt;br /&gt;Can you clarify for me.&lt;br /&gt;Thanks&lt;br /&gt;&amp;nbsp; &amp;nbsp; nRF5FanBoy&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
static int nordicsemi_nrf52_init(const struct device *arg)
{
	uint32_t key;

	ARG_UNUSED(arg);

	key = irq_lock();

#ifdef CONFIG_NRF_ENABLE_ICACHE
	/* Enable the instruction cache */
	NRF_NVMC-&amp;gt;ICACHECNF = NVMC_ICACHECNF_CACHEEN_Msk;
#endif

#if defined(CONFIG_SOC_DCDC_NRF52X)
	nrf_power_dcdcen_set(NRF_POWER, true);
#endif
#if NRF_POWER_HAS_DCDCEN_VDDH &amp;amp;&amp;amp; defined(CONFIG_SOC_DCDC_NRF52X_HV)
	nrf_power_dcdcen_vddh_set(NRF_POWER, true);
#endif

	/* Install default handler that simply resets the CPU
	* if configured in the kernel, NOP otherwise
	*/
	NMI_INIT();

	irq_unlock(key);

	return 0;
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable VDDH (REG0) DC/DC properly in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/305792?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 10:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d369c08d-fdc0-44de-9f92-861093b48e67</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I can update&amp;nbsp;this case.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable VDDH (REG0) DC/DC properly in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/305740?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 08:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468ed041-5d62-459e-8b46-e82dbea40702</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;OK, thanks.&lt;/p&gt;
&lt;p&gt;Do we have any option to be informed when this task (internal JIRA) will be closed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable VDDH (REG0) DC/DC properly in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/305730?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 07:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:453b143c-4a8d-46a0-a327-21f8b74848d6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I would expect this to be configurable through a kconfig option, and then enabled in&amp;nbsp;nordicsemi_nrf52_init(). However it doesn&amp;#39;t look like this is possible as of today, so I have created an internal jira to look into this for future.&lt;/p&gt;
&lt;p&gt;For now I assume you will need to set it manually&amp;nbsp;in your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>