<?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>ncs semaphore odd behavior</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104269/ncs-semaphore-odd-behavior</link><description>I have some very wonky semaphore behavior. Basically, giving a semaphore in an ISR isn&amp;#39;t waking up a blocked thread. Reproducing program: 
 
 
 proj.conf: 
 
 Produces the following output: Note how &amp;#39;Main thread&amp;#39; is printed twice each second? And notice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Sep 2023 23:55:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104269/ncs-semaphore-odd-behavior" /><item><title>RE: ncs semaphore odd behavior</title><link>https://devzone.nordicsemi.com/thread/448228?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 23:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25fbd2ad-00b3-493a-a102-2f93e64f3eec</guid><dc:creator>KWolfe81</dc:creator><description>&lt;p&gt;Update provided on the Zephyr&amp;nbsp;Discord group:&lt;/p&gt;
&lt;h3 class="header-2jRmjb"&gt;&lt;span id="message-username-1157102316286132285" class="headerText-2z4IhQ"&gt;&lt;span class="username-h_Y3Us desaturateUserColors-1O-G89 clickable-31pE3P"&gt;tomb&lt;/span&gt;&lt;/span&gt;&lt;span class="timestamp-p1Df1m timestampInline-_lS3aK"&gt;&lt;time id="message-timestamp-1157102316286132285" datetime="2023-09-28T23:51:30.124Z"&gt;&lt;i class="separator-AebOhG"&gt; &amp;mdash; &lt;/i&gt;Today at 4:51 PM&lt;/time&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div id="message-content-1157102316286132285" class="markup-eYLPri messageContent-2t3eCI"&gt;&lt;span&gt;IRQ&lt;/span&gt;&lt;span&gt;_DIRECT&lt;/span&gt;&lt;span&gt;_CONNECT will not allow the scheduler to run&lt;/span&gt;&lt;span&gt;, it effectively bypasses the kernels ability run its scheduling point that might otherwise happen after an ISR returns&lt;br /&gt;&lt;br /&gt;Use&amp;nbsp;IRQ_CONNECT&amp;nbsp;instead.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>