<?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>How to do pstorage operations in app_timer event handler?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20841/how-to-do-pstorage-operations-in-app_timer-event-handler</link><description>I want to write pstorage functions in app_timer event handler. The reason is that, I want to poll certain events using the app_timer. This things I cannot do in main thread since it has some blocking codes that cannot be avoided. If i execute pstorage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Mar 2017 14:48:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20841/how-to-do-pstorage-operations-in-app_timer-event-handler" /><item><title>RE: How to do pstorage operations in app_timer event handler?</title><link>https://devzone.nordicsemi.com/thread/81395?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 14:48:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e9f9a4-3a56-418f-8229-c1646124eb67</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you tried to debug and see what cause the chip to get reset? &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;Here&lt;/a&gt; is the link on how to debug.&lt;/p&gt;
&lt;p&gt;You may want to make a simplified example that reproduce the issue, then i can have a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do pstorage operations in app_timer event handler?</title><link>https://devzone.nordicsemi.com/thread/81397?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 12:44:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:158a54c8-a9cb-48e3-adca-479f4790d420</guid><dc:creator>mukesh</dc:creator><description>&lt;p&gt;Thanks for the reply. The timer interrupt priority is  APP_IRQ_PRIORITY_LOW, still it is having problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do pstorage operations in app_timer event handler?</title><link>https://devzone.nordicsemi.com/thread/81396?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 12:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:704fd457-0973-4cb3-a5da-4a820c3cbef9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Which priority did you set for your timer interrupt ? If it set to APP_IRQ_PRIORITY_HIGH, pstorage may have trouble as it call Softdevice API that requires lower context.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>