<?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>Using ZBus with ISRs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110646/using-zbus-with-isrs</link><description>Hi, 
 I just started working with ZBus and even though Zephyr&amp;#39;s documentation states that &amp;quot; Publishing, reading, claiming, and finishing are available in all RTOS thread contexts, including ISRs.&amp;quot;, Nordic documentation claims the opposite &amp;quot;Publishing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Apr 2024 14:00:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110646/using-zbus-with-isrs" /><item><title>RE: Using ZBus with ISRs</title><link>https://devzone.nordicsemi.com/thread/481121?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 14:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa8f46b5-b489-40a0-9627-dda7595cc2bc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Always happy to help out.&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ZBus with ISRs</title><link>https://devzone.nordicsemi.com/thread/481079?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 12:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:175172e9-49c9-4019-b293-66da9e3ea499</guid><dc:creator>saiff</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;Thanks for your response, indeed apparently i was checking an older version of the documentation, thanks for clearing that up.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ZBus with ISRs</title><link>https://devzone.nordicsemi.com/thread/481066?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 12:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c8e4b5-d81a-4847-832a-bbf1e18ed832</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure which version of ncs that holds this specific docs sentence, but we base our sdk-zephyr on upstream-zephyr, so the docs will be similar.&lt;/p&gt;
&lt;p&gt;For example, here&amp;#39;s the upstream zephyr v3.5.0 docs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/3.5.0/services/zbus/index.html#concepts"&gt;https://docs.zephyrproject.org/3.5.0/services/zbus/index.html#concepts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it this sentence you&amp;#39;re wondering about? This sentence is removed&amp;nbsp;from the docs in newer zephyr version(s) (v3.6.99 and newer)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;However, it cannot run inside Interrupt Service Routines (ISR) because it uses mutexes to control channel access, and mutexes cannot work appropriately inside ISRs.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Mutex&amp;#39;es cannot be taken from ISR context, and the same goes for anything that has a timeout that is non-zero (ie. needs to be K_NO_WAIT).&lt;/p&gt;
&lt;p&gt;This is also notified on the specific API&amp;#39;s as well, for instance here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/zbus/index.html#publishing-to-a-channel"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/zbus/index.html#publishing-to-a-channel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>