<?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>nRF51 pstorage during ble_radio_active_evt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24209/nrf51-pstorage-during-ble_radio_active_evt</link><description>I&amp;#39;ve been banging my head against this for a couple days now, and need some help. First the layout. 
 In our setup we have an accelerometer with a movement interrupt pin (high when movement detected) tied to a sense high input, and a stationary interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Aug 2017 14:52:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24209/nrf51-pstorage-during-ble_radio_active_evt" /><item><title>RE: nRF51 pstorage during ble_radio_active_evt</title><link>https://devzone.nordicsemi.com/thread/95335?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 14:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82e401b4-dea9-400b-ab1a-a6a74640d24e</guid><dc:creator>Jeremy</dc:creator><description>&lt;p&gt;Thanks! Knowing what was going on it was a lot easier to solve. Moved the sd_power_system_off() call to the pstorage callback to fire when an PSTORAGE_UPDATE_OP_CODE was detected, and just returned from the radio notification interrupt after starting the update, and everything seems to be working great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 pstorage during ble_radio_active_evt</title><link>https://devzone.nordicsemi.com/thread/95334?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 11:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cbed974-a628-484d-be43-92c83c80148c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jeremy,&lt;/p&gt;
&lt;p&gt;Stay in a radio notification call back to wait for the pstorage call back may be not a very a good idea. Radio notification and flash notification share the same interrupt.So flash notification won&amp;#39;t be able to trigger when you are still in the radio notification call back. Same applied for any same priority level interrupts.&lt;/p&gt;
&lt;p&gt;What you should do is to set a flag and then wait for the operation to complete in a sleep in the main loop, or use app scheduler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>