<?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>Simple mutex issue causing board reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70725/simple-mutex-issue-causing-board-reset</link><description>I have a strange issue on the nRF9160-DK board using the nRF Connect SDK, GNU ARM for GCC v10.2.1, built using makefiles. 
 I have two threads that both wait on a semaphore to begin their work. One launches at 59s and the other at 60s so they&amp;#39;re staggered</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jan 2021 07:40:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70725/simple-mutex-issue-causing-board-reset" /><item><title>RE: Simple mutex issue causing board reset</title><link>https://devzone.nordicsemi.com/thread/290654?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 07:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c971960f-65dd-410c-9295-f12f8ce45f34</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Yes, please reopen if the problem persists :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple mutex issue causing board reset</title><link>https://devzone.nordicsemi.com/thread/290601?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 17:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a044d0b7-4e6d-48f4-994d-844c3886dd20</guid><dc:creator>jongor</dc:creator><description>&lt;p&gt;I think, for now, the problem is resolved. There was a debug message on the next line after the&amp;nbsp;timeout&amp;nbsp;that attempted to print out the thread name of the current mutex owner that blocked it. So, the process of events was:&lt;/p&gt;
&lt;p&gt;Thread A took the mutex&lt;br /&gt;Thread B asked for the mutex and timed out&lt;br /&gt;Microseconds later and before the log message, Thread A released the mutex&lt;br /&gt;Microseconds later, Thread B attempted to log the error and dereferenced the &amp;quot;owner&amp;quot; pointer that was now set to NULL.&lt;/p&gt;
&lt;p&gt;I felt I had removed this and still had the issue but cannot now replicate that so perhaps it was a misbuild or unsaved file.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll re-open this thread if&amp;nbsp;it occurs again without the NPD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple mutex issue causing board reset</title><link>https://devzone.nordicsemi.com/thread/290523?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 13:03:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a3b5c4-5c4f-42a9-a52f-17c2c61b4ffc</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you please provide some more details around your issue? What version NCS are you using?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>