<?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>Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45189/flash-corruption-caused-by-power-down-during-writing</link><description>Hello, 
 I&amp;#39;m using nRF52840 chip with nRF5 SDK 15.2.0 ,Mesh SDK 3.1.0 and soft device S140 6.1.1 
 I&amp;#39;m trying to protect the flash if a shutdown occurs during a write. Reading in the forum it seems that the POFWARN event does it for me. I&amp;#39;m trying to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Oct 2020 12:17:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45189/flash-corruption-caused-by-power-down-during-writing" /><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/272970?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 12:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f900d51-4262-40a5-9c66-2bc04c094307</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Let&amp;#39;s continue &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66706/randomly-happened-flash-corruption-after-power-cycling-only-with-bootloader-flashed-s132-softdevice-v2-0-0-sdk11-0-0"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/272896?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 08:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78905ab7-e98b-4342-b60d-98d553b0920b</guid><dc:creator>ivnn</dc:creator><description>&lt;p&gt;I found an interesting condition it&amp;#39;s happened if I have flashed bootloader&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/250221?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 14:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5dd517f-d036-43ca-84b9-ae0b36c149f5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, flash writing is prevented when there is a POF warning condition. This is a bit odd though since it will look like the flash write operations succeed, but in fact, nothing is written to flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/250216?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 14:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbf5ed12-9989-4361-8cca-7da35fd7a377</guid><dc:creator>ivnn</dc:creator><description>&lt;p&gt;Could&amp;nbsp;&lt;span&gt;POF&amp;nbsp;warning help to block writing during power below threshold?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;// Initialize SoftDevice.&lt;br /&gt;err_code = sd_softdevice_enable(p_clock_lf_cfg, softdevice_fault_handler);&lt;br /&gt;if (err_code != NRF_SUCCESS){&lt;br /&gt;&amp;nbsp;return err_code;&lt;br /&gt; }&lt;br /&gt;err_code = sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);&lt;br /&gt;APP_ERROR_CHECK(err_code);&lt;br /&gt;err_code = sd_power_pof_enable(1);&lt;br /&gt;APP_ERROR_CHECK(err_code);&lt;br /&gt;err_code = sd_power_pof_threshold_set(NRF_POWER_THRESHOLD_V28);&lt;br /&gt;APP_ERROR_CHECK(err_code);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/250213?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 13:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9929922b-c4a2-4b81-8332-d9965e54a1d7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a specific recommendation, but you should consider this in your particular case. The point is that ending up in a loop with rapid writes to flash is bad, and should be avoided. That is a general thing that is not particular to the nRF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/249950?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 12:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:696637b1-8b08-40dc-af06-86fcf0ea49d1</guid><dc:creator>ivnn</dc:creator><description>&lt;p&gt;What time delay you can recommend to wait for stabilize nrf52 after powerup ?&lt;br /&gt;thx for reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/249939?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 11:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639ec9dd-5347-4bea-9293-68b9a831a52c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not in general, but it is not a good idea to write to flash immediately after a reset since that could cause the device to go in a loop where it resets, tries to write to flash and get a power failure leading to a reset etc. if the battery is depleted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/249920?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 11:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f87c0f7b-8e44-4ede-a957-1340f0a0f5e7</guid><dc:creator>ivnn</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have the same one problem, when I power up or perform power reset nrf52832 some times I have corrupted flash content.&lt;br /&gt;&lt;br /&gt;Am I right I should add some code delay after powerup and before main code start?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/177812?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 11:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c962dcd0-9b17-4757-afb4-ddb159b9088d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;No, that is not possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/177804?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 11:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f4f7d7-919d-4e54-918c-51e79b8d7c9d</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;ok thanks,&lt;br /&gt;&lt;br /&gt;Now I see that, if the power loss occours during a flash erase, the NRF_EVT_POWER_FAILURE_WARNING event inside the SoC raises only after the erase complete.&lt;br /&gt;&lt;br /&gt;The SDH_SOC_OBSERVER has already priority 0.&lt;br /&gt;&lt;br /&gt;Is it possible to catch the NRF_EVT_POWER_FAILURE_WARNING during an erase operation?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/177778?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 09:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1720050-e7c7-449f-a523-53e3286b8f97</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote userid="76761" url="~/f/nordic-q-a/45189/flash-corruption-caused-by-power-down-during-writing/177759"]How can avoid this issue for the SDK Mesh Flash Writes (for example, during the provisioning and subscribe/publish configuration phase from the provisioner)?[/quote]
&lt;p&gt;Usig POFWARN will prevent &lt;em&gt;all&lt;/em&gt; flash writes. This is implemented in HW. From product specification:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;If the power failure warning is enabled and the supply voltage is below the threshold, the power-fail comparator will prevent the NVMC from performing write operations to the flash.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/177759?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 08:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe55cd7a-50f7-40cf-9cb1-7bcbd13dd597</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;Ok, now i&amp;#39;ll take care of time margins during flash write.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m implementing a BLE Mesh Network using BLE Mesh SDK 3.1.0.&lt;br /&gt;I use the &amp;quot;flash_manager&amp;quot; API to write my user persistent data and I see that these APIs do defragmentation and other smart procedures to manage the flash area.&lt;br /&gt;&lt;br /&gt;If there&amp;#39;s a a power down during a write session, I&amp;#39;ve noted that the SDK throw an assert at the next power on:&lt;br /&gt;&lt;strong&gt;- mesh_config_backend_file_create&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; - flash_manager_add&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - get_invalid_bytes&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - get_next_entry&amp;nbsp; [ NRF_MESH_ASSERT(p_entry-&amp;gt;header.len_words != 0);]&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Now I&amp;#39;m trying to avoid this flash corruption using the POFWARN event for my persistent user data writes.&lt;br /&gt;&lt;br /&gt;How can avoid this issue for the SDK Mesh Flash Writes (for example, during the provisioning and subscribe/publish configuration phase from the provisioner)?&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve no control in these phases, and a flash memory corruption at the final customer should be critical and irrecoverable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/177734?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 07:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4833235c-edc6-4b29-b418-13d26771d834</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This makes sense.&lt;/p&gt;
[quote userid="76761" url="~/f/nordic-q-a/45189/flash-corruption-caused-by-power-down-during-writing/177671"]Is this sufficent to avoid flash corruption during power down writes?[/quote]
&lt;p&gt;This will make sure that no writes are allowed to flash after the supply voltage has dropped below the POF warning level. However, weather the flash is corrupted or not also depends on the time it takes from the POF warning until VDD drops below the minimum voltage, in cases a flash write operation was already started before the POF warning. This might be theoretical but could occur if for instance the device starts to draw more current while writing to flash, pulling down the battery voltage. Therefor you should probably add some margin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/177671?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 17:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d3b2dd9-7d2f-4994-9c6d-062af1e26077</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;I&amp;#39;ve found this method which uses only SoftDevice APIs&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I call the sequent code after SoftDevice enable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ret_code_t err_code = sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;APP_ERROR_CHECK(err_code);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;err_code = sd_power_pof_enable(1);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;APP_ERROR_CHECK(err_code);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;err_code = sd_power_pof_threshold_set(NRF_POWER_THRESHOLD_V28);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;APP_ERROR_CHECK(err_code);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Now I&amp;#39;m able to catch the NRF_EVT_POWER_FAILURE_WARNING event inside the SoC event observer.&lt;/p&gt;
&lt;p&gt;Is this sufficent to avoid flash corruption during power down writes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/177660?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 15:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e49da13-d699-498a-9c88-a52c82446ef5</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;div style="background-color:#222222;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12px;font-weight:normal;line-height:16px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;ret_code_t&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;nrf_drv_power_init&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;nrf_drv_power_config_t&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#93c763;"&gt;const&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; p_config)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#a082bd;"&gt;#ifdef&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#a082bd;"&gt;SOFTDEVICE_PRESENT&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#93c763;"&gt;if&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; (m_initialized)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#93c763;"&gt;return&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; NRF_ERROR_MODULE_ALREADY_INITIALIZED;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#93c763;"&gt;if&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; (&lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;nrf_sdh_is_enabled&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;())&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#93c763;"&gt;return&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; NRF_ERROR_INVALID_STATE;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#a082bd;"&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#93c763;"&gt;if&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; (p_config == &lt;/span&gt;&lt;span style="color:#93c763;"&gt;NULL&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; p_config = &amp;amp;m_drv_power_config_default;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;ret_code_t&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; err_code = &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;nrfx_power_init&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(p_config);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#93c763;"&gt;if&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; (err_code == NRFX_SUCCESS)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; m_initialized = &lt;/span&gt;&lt;span style="color:#93c763;"&gt;true&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#93c763;"&gt;return&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; err_code;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the code of nrf_drv_power_init: if the softdevice is already enabled, the function return with NRF_ERROR_INVALID_STATE error code&lt;/p&gt;
&lt;p&gt;There is something not clear to me&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash corruption caused by power down during writing</title><link>https://devzone.nordicsemi.com/thread/177585?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 13:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b85aa515-5dc7-4f08-b240-8cdc3bc4bf02</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are right that using POFWARN make sense in this setting, as flash writes are not allowed after a POF warning.&lt;/p&gt;
&lt;p&gt;You cannot use nrfx after the SoftDevice has been enabled, as it uses direct register access to the protected POWER registers. You could use&amp;nbsp;the power driver (nrf_drv_power) instead after first enabling the SoftDevice, as this use SoftDevice API&amp;#39;s when a SoftDevice is present.&lt;/p&gt;
&lt;p&gt;Similarly, you cannot&amp;nbsp;write to&amp;nbsp;POWER-&amp;gt;DCDCEN when the SoftDevice is enabled, as this is a protected peripheral. Instead you should use the SoftDevice API for this (&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga84bd6a0e8f55a7aa85a5ec608edd61fe"&gt;sd_power_dcdc_mode_set()&lt;/a&gt;), or simply set&amp;nbsp;POWER_CONFIG_DEFAULT_DCDCEN to 1 in sdk_config. h and use nrf_drv_power.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>