<?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>Help with &amp;quot;k_sleep()&amp;quot; not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85826/help-with-k_sleep-not-working</link><description>Hello, simple question regarding k_sleep(), to simplify, I&amp;#39;ve modified button example from Zephyr adding a k_sleep in button_pressed function, the k_sleep it&amp;#39;s not working as espected, it returns immediatelly without waiting the sleep timeout. What I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Mar 2022 10:17:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85826/help-with-k_sleep-not-working" /><item><title>RE: Help with "k_sleep()" not working</title><link>https://devzone.nordicsemi.com/thread/358593?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 10:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f1e465e-6d87-482e-8692-d6c9ca1c19e7</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Michele,&lt;/p&gt;
&lt;p&gt;I am glad that it has helped. Good luck.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with "k_sleep()" not working</title><link>https://devzone.nordicsemi.com/thread/358540?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 07:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0302c2a7-3b37-4e16-8dea-6100f8966a95</guid><dc:creator>m1kel3</dc:creator><description>&lt;p&gt;Hi, thank you, this are exactly the informations I was looking for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with "k_sleep()" not working</title><link>https://devzone.nordicsemi.com/thread/358474?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 15:08:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f37231-f299-4fda-b108-31ed6ae12db8</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Michele,&lt;/p&gt;
&lt;p&gt;You can check these link:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/21341"&gt;conditions required for safe call of kernel operations from interrupts · Issue #21341 · zephyrproject-rtos/zephyr · GitHub&lt;/a&gt;&amp;nbsp;and these assert here&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1/kernel/sched.c#L1272"&gt;sdk-zephyr/sched.c at v2.7.99-ncs1 · nrfconnect/sdk-zephyr · GitHub&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with "k_sleep()" not working</title><link>https://devzone.nordicsemi.com/thread/358276?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 16:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f4a2ab2-cc3a-4fc7-ba69-5fdadeec874c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Michele,&lt;/p&gt;
&lt;p&gt;I have been looking at your case. The declaration of k_msleep() function should be fine. I will reproduce it here in my system and let you know tomorrow.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>