<?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>Qspi interrupt hangs caused by power consumption problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50290/qspi-interrupt-hangs-caused-by-power-consumption-problems</link><description>Hi,Master: 
 When I use the QSPI library to communicate with flash, everything works fine. After a complete read and write, nrfx_qspi_uninit() is called to reduce power consumption, but there will always be a qspi interrupt pending in the NVIC, which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2019 06:22:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50290/qspi-interrupt-hangs-caused-by-power-consumption-problems" /><item><title>RE: Qspi interrupt hangs caused by power consumption problems</title><link>https://devzone.nordicsemi.com/thread/201112?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 06:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b2508e5-4f69-4f65-b837-29a64791978d</guid><dc:creator>outspace</dc:creator><description>&lt;p&gt;Thank you very much, I will try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Qspi interrupt hangs caused by power consumption problems</title><link>https://devzone.nordicsemi.com/thread/201095?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 04:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27390865-c9f4-4398-a945-1c9247afaaeb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assumed you were using the drivers with interrupts enabled. I&amp;#39;m able to replicate it now, and it turned out to be a driver issue. nrfx_qspi_cinstr_xfer() sets the QSPI interrupt enable register even if the driver is configured in blocking mode. Thus, since the QSPI IRQ is not enabled,&amp;nbsp; a ready event from the QSPI will trigger an interrupt that won&amp;#39;t be serviced.&lt;/p&gt;
&lt;p&gt;Removing the call to&amp;nbsp;nrf_qspi_int_enable() in&amp;nbsp;nrfx_qspi_cinstr_xfer() should fix the problem. This change was made in the nrfx 1.7.2 release:&amp;nbsp;&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/nrfx/tree/v1.7.2"&gt;https://github.com/NordicSemiconductor/nrfx/tree/v1.7.2&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Qspi interrupt hangs caused by power consumption problems</title><link>https://devzone.nordicsemi.com/thread/201088?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 01:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41df35c7-9c4b-4c27-9630-a56fb034c708</guid><dc:creator>outspace</dc:creator><description>&lt;p&gt;Hi,Vidar Berg&lt;/p&gt;
&lt;p&gt;Maybe I didn&amp;#39;t express my question clearly: I mean:When I use the QSPI library to communicate with flash, first initialize nrfx_qspi_init(&amp;amp;config, NULL, NULL) (handler parameter is NULL, ie: qspi internal interrupt is not enabled); after reading and writing, call nrfx_qspi_uninit() to reduce power consumption , but there will always be qspi interrupt hangs in NVIC, which will result&amp;nbsp;in main&lt;/p&gt;
&lt;p&gt;for(;;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;App_sched_execute();&lt;/p&gt;
&lt;p&gt;Ble_idle_state();&lt;/p&gt;
&lt;p&gt;Sys_wdt_feed();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;is always woken up, resulting in an average power consumption that cannot be reduced. This problem can be solved by adding NRFX_IRQ_PENDING_CLEAR(QSPI_IRQn) after calling nrfx_qspi_uninit(). why? Is there any hidden problem that needs attention in other places on the nordic platform? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Qspi interrupt hangs caused by power consumption problems</title><link>https://devzone.nordicsemi.com/thread/200947?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 11:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c10a700-c05f-4c58-a90e-fbb1ce77acad</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is nrfx_qspi_uninit() called from an interrupt context&amp;nbsp;that could block a QSPI IRQ from being serviced? Please check if the&amp;nbsp;&lt;a title="EVENTS_READY" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/qspi.html?cp=3_0_0_5_18_9_5#register.EVENTS_READY"&gt;EVENTS_READY&lt;/a&gt;&amp;nbsp;register actually is cleared (read as &amp;#39;0&amp;#39;) after you have uninitialized the peripheral.&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>