<?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>restricted functionalities in ISR context</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7757/restricted-functionalities-in-isr-context</link><description>Hi, 
 I&amp;#39;ve noticed that the following s110 API work in my application, when called from the main context, but fail when called from an ISR context (button press interrupt or system event) : 
 
 pstorage_clear() 
 pstorage_store() 
 bootloader_app_start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2015 16:46:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7757/restricted-functionalities-in-isr-context" /><item><title>RE: restricted functionalities in ISR context</title><link>https://devzone.nordicsemi.com/thread/27619?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 16:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51004f3a-4e80-41eb-b36e-fcdaf1e4ee8e</guid><dc:creator>Jean-Louis Bonnaff&amp;#233;</dc:creator><description>&lt;p&gt;well, for pstorage functions, the flash event callback is never called, and for bootloader_app_start, the application doesn&amp;#39;t restart. Get back to you later for the priorities.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: restricted functionalities in ISR context</title><link>https://devzone.nordicsemi.com/thread/27618?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 10:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7d39d4e-0a31-4d70-9e86-866e61cc4ced</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;what does &amp;#39;fail&amp;#39; mean? They give error codes, they don&amp;#39;t run, the code goes into the error handler or hardfault handler?&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the interrupt priority of the ISR you&amp;#39;re using? If it&amp;#39;s higher priority than the SVC handler (which is level 2) then you&amp;#39;ll hardfault because you can&amp;#39;t call a SVC call from a higher priority handler. If you&amp;#39;re using APP_HIGH, that&amp;#39;s too high.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>