<?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>app_timer2 and unprivileged mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61489/app_timer2-and-unprivileged-mode</link><description>Hi, 
 
 In our project, we are using a small RTOS to switch between simple tasks and set MPU. We would like to run all task in unprivileged mode, but some Nordic SDK libraries prevent this. 
 
 In unprivileged mode, all call to SCS are forbidden. So,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 May 2020 06:00:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61489/app_timer2-and-unprivileged-mode" /><item><title>RE: app_timer2 and unprivileged mode</title><link>https://devzone.nordicsemi.com/thread/251162?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 06:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0becd156-1a0b-43d9-9da0-68c8841f64c7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;internal report number for your reference is&amp;nbsp;NRFFOETT-2483&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer2 and unprivileged mode</title><link>https://devzone.nordicsemi.com/thread/251159?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 05:51:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8f2ebc1-4f23-4d7a-b544-7b89fa13d226</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Jean,&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;So, do you think that Nordic can update these libraries (and all others making call to SCS) to call softdevice if available (i.e. sd_nvic_SetPendingIRQ...etc) like in nrf_sdh.c:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#ifdef SOFTDEVICE_PRESENT&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sd_nvic_SetPendingIRQ(IRQn);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#else&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_SetPendingIRQ(IRQn);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#endif&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;We should have done this already to check if the softdevice is present and call the softdevice function instead, atleast in the libraries. NRFX libraries will not have this check since they are designed to be agnostic of external dependencies.&lt;/p&gt;
&lt;p&gt;I can create a bug ticket for this. Thanks for reporting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>