<?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>NRF_ERROR_NOT_SUPPORTED returned by sd_power_system_off()  &amp;quot;sometimes&amp;quot;, nrf52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30389/nrf_error_not_supported-returned-by-sd_power_system_off-sometimes-nrf52</link><description>Randomly on my nrf52832, sd_power_system_off() is returning NRF_ERROR_NOT_SUPPORTED and I&amp;#39;m looking for tips on how to figure out why. I&amp;#39;m using a Bluetooth soft device and have some SPI and I2S peripherals on the board, using DMA. Once the error occurs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Feb 2018 08:03:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30389/nrf_error_not_supported-returned-by-sd_power_system_off-sometimes-nrf52" /><item><title>RE: NRF_ERROR_NOT_SUPPORTED returned by sd_power_system_off()  "sometimes", nrf52</title><link>https://devzone.nordicsemi.com/thread/120779?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 08:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7474114-2ef6-4a7b-b980-4657dd381a5f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update.&amp;nbsp;I think the un-init is a good way to ensure that DMA is disabled before entering sleep.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_ERROR_NOT_SUPPORTED returned by sd_power_system_off()  "sometimes", nrf52</title><link>https://devzone.nordicsemi.com/thread/120757?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 20:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dffd33c9-a8bd-4f31-acdf-7fe2258c4aea</guid><dc:creator>MattFL</dc:creator><description>&lt;p&gt;Quick update; I now un-init the SPI and I2S drivers before going to sleep, and I&amp;#39;m not 100% sure that fixed the problem since it was intermittent, but I haven&amp;#39;t seen the problem since.&amp;nbsp; Thanks for the tips about DMA, that helped a lot!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_ERROR_NOT_SUPPORTED returned by sd_power_system_off()  "sometimes", nrf52</title><link>https://devzone.nordicsemi.com/thread/120642?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 22:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba8eaf42-5207-4818-a530-2f4c607da744</guid><dc:creator>MattFL</dc:creator><description>&lt;p&gt;Thank you very much for the reply.&amp;nbsp; At the time the problem occurs, there is no debugger attached, and DMA operations &amp;quot;should have&amp;quot; finished some time ago.&amp;nbsp; Is there a way to forcefully stop the DMA, is it as easy as setting a register?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_ERROR_NOT_SUPPORTED returned by sd_power_system_off()  "sometimes", nrf52</title><link>https://devzone.nordicsemi.com/thread/120477?ContentTypeID=1</link><pubDate>Sat, 10 Feb 2018 12:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bedfe18e-accc-452d-a0aa-7c5dbdc68564</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sd_power_system_off() should not return unless the chip is in debug interface mode, then it is as expected. Copied from PS:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_1_0_17_1_0#unique_1199040052"&gt;NVMC — Non-volatile memory controller, CPU, Flash, and RAM. Since the CPU is kept on in an emulated System OFF mode, it is recommended to add an infinite loop directly after entering System OFF, to prevent the CPU from executing code that normally should not be executed.&lt;/a&gt;&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s also important that any DMA transactions are completed before entering system OFF mode. The&amp;nbsp;&lt;a title="Power Management library" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_pwr_mgmt.html?cp=4_0_0_3_30"&gt;Power Management library&lt;/a&gt;&amp;nbsp;can be used to&amp;nbsp;poll DMA status and delay shutdown until there are no pending transactions.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>