<?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>Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67730/group-address-message-crashes-all-nodes</link><description>Hi there! 
 Me again... I&amp;#39;m having issues with networks that consist of more than two nodes. When my network consists of three nodes and one node sends a message to another, the node that wasn&amp;#39;t addressed, crashes. The network consists of one nRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Nov 2020 08:26:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67730/group-address-message-crashes-all-nodes" /><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/278729?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 08:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3b2d262-af23-46f6-856a-67304cf66b01</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;Okay, I&amp;#39;m glad to let you know that it&amp;#39;s working as it&amp;#39;s supposed to be. None of the above described behaviour occurs anymore. Had to do a rewrite from the bottom up to determine the cause.&lt;/p&gt;
&lt;p&gt;As far as the origin of the problem, I&amp;#39;ve got some suspicions. In the end, the SDK&amp;#39;s didn&amp;#39;t turn out to be the problem; everything is working with the most recent (according to the &lt;a href="https://github.com/NordicPlayground/nrf-mesh-freeRTOS-example/tree/master/examples/light_switch_freertos/server" rel="noopener noreferrer" target="_blank"&gt;example &lt;/a&gt;modified) SDK&amp;#39;s. Am very happy with that.&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve found the following things to&amp;nbsp;cause said behaviour:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The mesh_stack_init_params being defined in a local context resulting in the destruction when the function returns. As is the case when using an object oriented approach and initializing the mesh stack in the constructor.&lt;/li&gt;
&lt;li&gt;Using the Idle Handler method instead of the Bearer Event Handler as described in the&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nrf-mesh-freeRTOS-example/tree/master/examples/light_switch_freertos/server"&gt;example&lt;/a&gt;. I should note however, that there are a lot of tasks running in our program. It&amp;#39;s very plausible the Idle Handler works fine with less demanding tasks.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To be honest, I think&amp;nbsp;using the SDK with the SDK for Mesh running on FreeRTOS being written in C++ didn&amp;#39;t help either. Since it isn&amp;#39;t really supported, a mistake or incompatibility can easily slip in...&lt;/p&gt;
&lt;p&gt;All in all I&amp;#39;m glad the problem is solved; it was quite a large one as you can tell. Neither of the ways out (abandoning C++ or FreeRTOS) was an option to me, so it really had to work in the end.&lt;/p&gt;
&lt;p&gt;Anyway, thanks for your support and have a great day!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/278451?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 13:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:054b52ad-b3b6-423e-82e9-29c8382b3200</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;It hasn&amp;#39;t been clear what is causing the issue but might be something with FreeRTOS and SDK versions like you said.&amp;nbsp;Keep me updated :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/278440?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 12:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb2d00dd-20d2-491d-896d-60e29b845854</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;I went back to the first commit I&amp;#39;ve done and can now say with 100% certainty it has always been this way; I just didn&amp;#39;t notice it. Hence, I&amp;#39;ve come to the conclusion that the FreeRTOS example on GitHub doesn&amp;#39;t work with my SDK versions.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to revert to V4.1.0 and V16.0.0 to see if the issue is resolved. Gonna take some time though... Have to redo all changes to the SDK&amp;#39;s and name conflicts between FreeRTOS and the SDK for Mesh.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll let you know how it goes and if it turns out to be functional.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/278067?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 12:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90109434-754d-4a7b-89cd-40f88588bc60</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Yep, found it out. Defining the &amp;quot;DEBUG_NRF&amp;quot; or &amp;quot;DEBUG_NRF_USER&amp;quot; macro resulting in the definition of &amp;quot;configASSERT&amp;quot; in FreeRTOSConfig.h results in the &amp;quot;ASSERTION FAILED at :0&amp;quot;. When said macro isn&amp;#39;t defined, the nodes crash.&lt;/p&gt;
&lt;p&gt;Below the part in FreeRTOSConfig.h it&amp;#39;s all about.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if defined(DEBUG_NRF) || defined(DEBUG_NRF_USER)
#include &amp;quot;nrf_mesh_assert.h&amp;quot;
#define configASSERT( x )                                               NRF_MESH_ASSERT(x)
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s clear that something is wrong, but what? Has anyone got an idea? Now that I think of it, it&amp;#39;s also impossible to subscribe to addresses. The app says &amp;quot;Not a subscribe model&amp;quot; when trying to do so. Could it have to do something with that?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/278047?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 12:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38b97fff-d605-49f3-a3d4-8df226122211</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to let you know I can provision the nodes again; reverted a couple of commits... The problem as described in the opening post is still the same though.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/278024?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 10:49:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce27f00d-3432-45d4-8dd1-43eb52770e54</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;Now I can&amp;#39;t even get the composition data or ttl after adding a newly provisioned node... I&amp;#39;m absolutely clueless... The same errors occur.&lt;/p&gt;
&lt;p&gt;Changing to SoftDevice &amp;#39;S&lt;span&gt;140&lt;/span&gt;&lt;span&gt;_nrf52_7.0.1&amp;#39; doesn&amp;#39;t change anything. Maybe it&amp;#39;s important to note that the provisioning through the app does never work and I always have to do it manually which is, impossible now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/278011?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 10:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57c8be63-f463-4edc-a954-8b56883223a8</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;After enabling the configASSERT in FreeRTOS, I managed to produce output in the terminal.&amp;nbsp;This is what&amp;#39;s printed in the terminal of the server with unicast address 0x0002 when the client transmits to 0xFFFF.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: RX: [aop: 0x00C1]

&amp;lt;info&amp;gt; app: RX: Msg
&amp;lt;info&amp;gt; app: Led is now turned on.
&amp;lt;info&amp;gt; app: TX: [aop: 0x00C4]

&amp;lt;info&amp;gt; app: TX: Msg
&amp;lt;error&amp;gt; app: ASSERTION FAILED at :0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And this is what the debugger shows.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;
Program
 received signal SIGTRAP, Trace/breakpoint trap.
0x00052aa4 in app_error_fault_handler (id=id@entry=16386, pc=324690, info=info@entry=536902224) at C:/Users/kraan/Downloads/clean/nRF5_SDK_17.0.2_d674dde/components/libraries/util/app_error_weak.c:100
100	    NRF_BREAKPOINT_COND;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hence, it appears to be a weak app error. A quick look in the Q&amp;amp;A shows &amp;#39;ASSERTION FAILED at :0&amp;#39; is most likely caused by calling &amp;#39;NRF_MESH_ASSERT(false)&amp;#39;. Is that correct? It isn&amp;#39;t anywhere in code written by me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/277989?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 09:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d38e2a5-518d-4d69-a8f4-1a2f0fa1ecdc</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know really. It just stops... Nothing is printed in the terminal. I&amp;#39;ll look into it right now though!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for your second question; I&amp;#39;m using V4.2.0 from the SDK for Mesh and V17.0.2 from the nRF5 SDK.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group address message crashes all nodes?!</title><link>https://devzone.nordicsemi.com/thread/277986?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 09:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb4a008b-cee7-4e64-bc89-2a73f8112357</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you give some more details on what you mean by your node &amp;quot;crashing&amp;quot;? Is it a hardfault? app_error_handler? or other resets?&lt;/p&gt;
&lt;p&gt;Also, can you provide which SDK versions you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>