<?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>Not able to execute while (1) loop after soft reset using GPIO interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78039/not-able-to-execute-while-1-loop-after-soft-reset-using-gpio-interrupt</link><description>Hi, 
 I am developing project using nrf52840 and currently developing using SDK 3.0. (Once I complete my feature I will update to SDK4.1). 
 I am using the light bulb firmware (using ZigBee) available in the SDK 
 I wish to soft reset the device and start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Aug 2021 06:18:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78039/not-able-to-execute-while-1-loop-after-soft-reset-using-gpio-interrupt" /><item><title>RE: Not able to execute while (1) loop after soft reset using GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/324356?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 06:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7079ad8-d46d-4342-aa8b-f980b94df231</guid><dc:creator>AnkeetG</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;Thank you very much for your response. I will check out the examples tagged by you.&lt;/p&gt;
&lt;p&gt;If I have any further question, I will get back to you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards&lt;/p&gt;
&lt;p&gt;Ankeet Gugale&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to execute while (1) loop after soft reset using GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/324355?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 06:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:280a2f8a-8e60-48c0-8202-e1870ebfa61d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again Ankeet&lt;/p&gt;
&lt;p&gt;We have a few cases explaining how to do attribute reporting in Zigbee already on DevZone. Please check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77556/zigbee-dimmable-light-on-off-attribute-reporting"&gt;this case&lt;/a&gt; for example, where Marte has provided a code snippet showing how to configure this from the reporting device.&lt;/p&gt;
&lt;p&gt;You can also check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/54980/custom-cluster-with-attributes-reporting"&gt;this case&lt;/a&gt; where Marjeris explains how to do&amp;nbsp;attribute reporting for custom clusters. If none of these are what you&amp;#39;re looking for, there are more &lt;a href="https://devzone.nordicsemi.com/search?q=attribute%20reporting"&gt;attribute reporting tickets around on DevZone.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to execute while (1) loop after soft reset using GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/324109?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 06:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:146ef0f7-a379-4918-a9ab-88377e822c21</guid><dc:creator>AnkeetG</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the response.&lt;/p&gt;
&lt;p&gt;As per your suggestion I did step by step after NVIC_SystemReset(); &lt;br /&gt;I posted query when I tested on SDK3.0 for zigbee and thread but I upgraded to SDK 4.1 for Zigbee and thread again tested same but this time while() loop executed so I am using SDK4.1. So the problem seems to be solved.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And as nordic engineers are on leave and we have late response, I need one more help and which little urgent for me so I am requesting you here. I request you to help me with this query also.&lt;/p&gt;
&lt;p&gt;I want my attribute reporting should happen automatically. For my project I am using nRF52840 and deCONZ gateway for communication. So whenever I write on attribute on gateway GUI it not reflecting unless and untill I click on Read.&lt;/p&gt;
&lt;p&gt;I have our nxp based product which works perfect with attribute reporting when the reporting interval in changed using deCONZ. Same I want to implement in nRF. It will be helpful if you could explain us how to handle the attribute reporting in nRF.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards&lt;/p&gt;
&lt;p&gt;Ankeet Gugale&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to execute while (1) loop after soft reset using GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/323211?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 06:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a52cfb-ce17-4dbb-aefc-e78edd0d54ab</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As the main() loop starts over again once you reset your device, all the initializations will start over as well. I think you need to do some debugging to find out at what point your application stops/fails, as it must be halting somewhere before this while loop is called. I would try setting break points at various functions in the main loop to see if one of the inits fail for some reason (maybe something isn&amp;#39;t uninitialized correctly when the device is reset for example).&lt;/p&gt;
&lt;p&gt;It could also be that the state machine is in an invalid state at the moment of the reset, that&amp;#39;s hindering it from starting up again after the reset.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to execute while (1) loop after soft reset using GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/322994?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 06:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93adae0-24b9-46c2-8eb4-54a20464cfc9</guid><dc:creator>AnkeetG</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;div&gt;Please find the attached main.c and uart_statemachine.c file.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;And also snippet of code where I have used NVIC_SystemReset() function.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt; &amp;#160; &amp;#160; &amp;#160; //Master reset is executed
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; if(ui8GetFlagBuffer[2] &amp;amp; FLAGS_BYTE_2_MASTER_RESET_REQUEST)
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;//Erase bonding information
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;zigbee_erase_persistent_storage(ZB_TRUE);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;//soft reset
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;NVIC_SystemReset();
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3821.uart_5F00_statemachine.c"&gt;devzone.nordicsemi.com/.../3821.uart_5F00_statemachine.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8228.main.c"&gt;devzone.nordicsemi.com/.../8228.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards&lt;/p&gt;
&lt;p&gt;Ankeet Gugale&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to execute while (1) loop after soft reset using GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/322874?ContentTypeID=1</link><pubDate>Mon, 02 Aug 2021 12:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08005c3e-c612-4718-bd9d-933dd07656f0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Due to the summer vacation period we are currently understaffed, so delayed replies must be expected. I am sorry about any inconvenience this might cause.&lt;/p&gt;
&lt;p&gt;Can you explain where in your application this while(1) loop is located and what is executing after this soft reset? If you could provide a snippet of your main() function as well as the function calling NVIC_SystemReset for example, that would be helpful. You can add code snippets in DevZone replies by going to the &lt;strong&gt;Insert&lt;/strong&gt; dropdown menu and &lt;strong&gt;Code.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>