<?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>nRF52840 sleep mode with RFM95W LoRa is not working?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95982/nrf52840-sleep-mode-with-rfm95w-lora-is-not-working</link><description>We are using nrf52840 to integrate with LoRa(RFM95W) and when we are trying to keep the board into sleep mode(SYSTEM ON MODE) but, it is not going to sleep. Here ,we are using the power management library to keep the board into sleep mode and timers to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jan 2023 11:14:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95982/nrf52840-sleep-mode-with-rfm95w-lora-is-not-working" /><item><title>RE: nRF52840 sleep mode with RFM95W LoRa is not working?</title><link>https://devzone.nordicsemi.com/thread/406209?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 11:14:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4421779c-5785-4411-ac02-c534c258c22e</guid><dc:creator>Nagari Gopal</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;As you mentioned, we are&amp;nbsp;&lt;span&gt;using&amp;nbsp;power_management_init() and&amp;nbsp;idle_state_handle() functions and&lt;/span&gt;&amp;nbsp;it is returning from the&amp;nbsp;&lt;span&gt;idle_state_handle() function immediately. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;LoRa is using SPI interface to nrf52840 and I am in a daze why it is not going to sleep like that . We&amp;nbsp;have not connected&amp;nbsp;any interrupt pins from the LoRa to nrf52840 also.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Gopal&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 sleep mode with RFM95W LoRa is not working?</title><link>https://devzone.nordicsemi.com/thread/406189?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 09:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd4e1b07-e304-46bb-af6d-646083595587</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I recommend using&amp;nbsp;power_management_init() and&amp;nbsp;idle_state_handle(), the idle_state_handle() is a wrapper around&amp;nbsp;nrf_pwr_mgmt_run() but also ensure that any possible log is emptied and that the app scheduler is handled (if used).&lt;/p&gt;
&lt;p&gt;When you say it doesn&amp;#39;t go to sleep, how do you observe this? Are you measuring current consumption or do you see that the it&amp;#39;s always immediatly is returning from&amp;nbsp;idle_state_handle()?&lt;/p&gt;
&lt;p&gt;Looks like Lora is using an SPI interface, I don&amp;#39;t see any reason why an SPI interface should keep waking up the chip. So I guess you will just try to debug this further. Maybe the Lora module have a wakeup/interrupt pin that is waking up the nRF chip?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>