<?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>[Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89082/zigbee-problem-with-debugging-in-zigbee-thread-sdk-4-2-0</link><description>Hi everyone, 
 So I have using Zigbee and Thread SDK 4.2.0 for a while and I notice that some time there are some error like this 
 &amp;lt;error&amp;gt; app: ZBOSS assertion in file: 105, line: 1101 
 or 
 &amp;lt;error&amp;gt; app: ZBOSS assertion in file: 23, line: 105 
 Well</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2022 07:12:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89082/zigbee-problem-with-debugging-in-zigbee-thread-sdk-4-2-0" /><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/391334?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 07:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ba9c0fe-f976-48e9-806c-adb89bc9e795</guid><dc:creator>Jean-Philippe D</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know zboss sheduler, what is it and how can use it ?&lt;/p&gt;
&lt;p&gt;I known just &amp;#39;app_sched_execute&amp;#39; with &amp;#39;app_sched_event_put&amp;#39;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jean-Philippe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/391315?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 04:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ae5d9a-c951-4287-a5c7-3c6fc92d4c2f</guid><dc:creator>Tu Hoang</dc:creator><description>&lt;p&gt;Glad to hear that it is resolved for you&lt;/p&gt;
&lt;p&gt;The same thing happen with me too &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;. But in my case, I still get problem when put it in app scheduler so I put it in zboss scheduler and the problem is also solve.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;HNT&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/391022?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 14:25:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebf4910d-043c-4ab4-a58a-b8b2430101dc</guid><dc:creator>Jean-Philippe D</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I have resolve my problem about this assert (and many other)&lt;br /&gt;&lt;br /&gt;An IRQ about UART is occur and the treatment in this case is very long and do local attribut modification, try to send report and other things.&lt;br /&gt;&lt;br /&gt;I have move all the possible treatment which not need to be process at the moment in a function, to reduce to the minimum the handler treatment in the case of the IRQ, this is push to the &amp;#39;APP_SCHEDULER&amp;#39;&lt;br /&gt;&lt;br /&gt;Since, no more ASSERT occur, and many spurious behaviour have also disappear.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Jean-Philippe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389751?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2022 07:09:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0db5173d-41f7-44e9-93c3-995bf789f7ef</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Perhaps I wasn&amp;#39;t clear. The reason to do so is to make a strip down version of the project that:&lt;/p&gt;
&lt;p&gt;1: can replicate the issue.&lt;/p&gt;
&lt;p&gt;2: doesn&amp;#39;t contain confidential data, so it is possible to send.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another thing that I thought of. Make sure that you don&amp;#39;t use&amp;nbsp;zb_buf_get_out_delayed_func() from your custom parts of the application. Make sure that you use only the zb_buf_get_out_delayed() wrapper.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389744?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2022 06:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a076200-f841-4706-9664-0df257238b53</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you try to replicate the issue by replacing the Wifi SoC with a timer interrupt or something to trigger the events. Does the issue still occur then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389537?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 07:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6a51ce1-742b-452b-90a9-28507b286f75</guid><dc:creator>Tu Hoang</dc:creator><description>&lt;p&gt;Well the problem only occur when I send a lot of report attribute to the coordinator (about 1 message/sec) and it will take some time for the problem to happen. The more devices I have (in my case 100) , the faster it happen (approximately in the first 100 times).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/89082/zigbee-problem-with-debugging-in-zigbee-thread-sdk-4-2-0/389526"]t possible for me to reproduce your assert on a DK without any external HW[/quote]
&lt;p&gt;No, unfortunately,&amp;nbsp; I have another Wifi SoC as a gateway for the coordinator. The NRF52833 and this SoC connected through UART at 1Mbps. A message from UART will initiate an on/off command at the coordinator to the devices and then the device will report attribute back to the coordinator to be transfer back to the Wifi SoC. The code is confidential so I can not upload it to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;HNT&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389526?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 07:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2c436f6-a4fb-425e-8363-67df2f4e5aa3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/jean_2d00_philippe-d"&gt;Jean-Philippe D&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Is it possible for me to reproduce your assert on a DK without any external HW? If so, would it be possible to upload your project so that I can have a look? Please make sure that it compiles when unzipped in an unmodified SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389503?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 01:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2f1291b-66f0-4f0a-bb2c-319f412b6f84</guid><dc:creator>Tu Hoang</dc:creator><description>[quote userid="97655" url="~/f/nordic-q-a/89082/zigbee-problem-with-debugging-in-zigbee-thread-sdk-4-2-0/389313"]so what I do is just put the function which fail the assert into the zb app schedule [/quote]
&lt;p&gt;Well I just tried to trace as much as possible the API from Zboss that run when the error happen and then tried to encapsulate it to the Zboss app scheduler, you will find how and where to use it with the zigbee example like lightbulb and coordinator.&lt;/p&gt;
&lt;p&gt;Well but I do not know if it is going to work for everybody so you might have to try it yourself&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Tu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389383?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 11:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46bb0068-79d8-4a85-b418-c2d4e2ddc6cf</guid><dc:creator>Jean-Philippe D</dc:creator><description>&lt;p&gt;OK, about flash, normally no write access during the process when assert raised.&lt;br /&gt;About&amp;nbsp;&lt;span&gt;zb_app_schedule, I have not understand where, how and what you put in the app schedule.&lt;br /&gt;If you see my call stack, all the call is not my &amp;quot;resort&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389313?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 07:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec16cf72-1609-4d92-8883-d8a0be7706b8</guid><dc:creator>Tu Hoang</dc:creator><description>&lt;p&gt;Well, for my case it looks like because of the zboss stack have some bug with assertion when we call zb API asynchronously, so what I do is just put the function which fail the assert into the zb app schedule and the problem is not happen again. Also you might want to check if you have somewhat heavy flash operation inside of your code because it may have something to do with the problem too. For me it is when the router device process a commission process&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389312?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 06:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f227c59-0bb2-47cf-9ddb-d745bfe311b1</guid><dc:creator>Jean-Philippe D</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes I have set a breakpoint on line 154, in assert_indication_cb.c, and yes it is triggered.&lt;br /&gt;I use nrf5 SDK v4.2.0 and is not possible for me to changed for nrfconnect.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t known what appen precisely, but I notice this call stack:&lt;/p&gt;
&lt;p&gt;zb_apsde_data_acknowledged&lt;br /&gt;zb_af_handle_zcl_frame_data_confirm&lt;br /&gt;zb_buf_free_func&lt;br /&gt;zb_bufpool_storage_free&lt;br /&gt;zb_assert&lt;br /&gt;assert_indication_cb&lt;/p&gt;
&lt;p&gt;I have note also that (I&amp;#39;m not sure at 100%) but before assert, I have the current signal raised in zboss_signal_handler:&lt;br /&gt;Unimplemented signal (signal: 4, status: 0)&lt;/p&gt;
&lt;p&gt;Signal 4 is ZB_ZDO_SIGNAL_ERROR, is it possible that the 2 things have a link ?&lt;br /&gt;I have not found exemple about to how the signal ZB_ZDO_SIGNAL_ERROR shall be process, is it possible to have information about that ?&lt;/p&gt;
&lt;p&gt;Best regard,&lt;br /&gt;Jean-Philippe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389302?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 06:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d696ed58-f553-4325-b4e1-4baec6f7527f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jean-Philippe,&lt;/p&gt;
&lt;p&gt;Did you try to set a breakpoint where I mentioned in the other reply? Is it triggered?&lt;/p&gt;
&lt;p&gt;When did the issue start occuring? Did you do something with your project before this issue started to appear?&lt;/p&gt;
&lt;p&gt;Also, what SDK version are you using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/389191?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 11:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a2cab0c-1305-47d8-9b81-26a2fbaa1d5e</guid><dc:creator>Jean-Philippe D</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;I have the same assert:&lt;br /&gt;ZBOSS assertion in file: 23, line: 105&lt;br /&gt;&lt;br /&gt;Is it possible to have some information about this, like some code lines and the condition which raise this assert ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jean-Philippe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with debugging in Zigbee Thread SDK 4.2.0</title><link>https://devzone.nordicsemi.com/thread/373066?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 13:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8a8aab0-149e-4236-80f5-d7e4b480cfab</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I thought these were coming from the&amp;nbsp;ZB_TRACE_FILE_ID in the zboss files, but it looks like that is not the case, unless you have added some files that weren&amp;#39;t part of the SDK. Do you have any files that say&lt;/p&gt;
&lt;p&gt;#define&amp;nbsp;ZB_TRACE_FILE_ID 23 or 105?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see that I am having trouble manually asserting in the first place. Can you try to set a breakpoint on line 151 in zb_nrf52_common.c, and check the call stack when the assert occurs?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>