<?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>Global variable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78176/global-variable</link><description>Hi 
 I have a strange question to ask for your help.In my program, I define and use a large number of global variables. However, when I define a global variable again and use it, the program will make an error. The phenomenon is that it keeps restarting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Aug 2021 02:20:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78176/global-variable" /><item><title>RE: Global variable</title><link>https://devzone.nordicsemi.com/thread/323424?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 02:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf82a19-2f86-4d68-a502-5b2b8fb2ce92</guid><dc:creator>xiang san </dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks! Iwill have a try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Global variable</title><link>https://devzone.nordicsemi.com/thread/323260?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 09:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac03778c-3ea1-497a-934e-294e2c904344</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So it looks it keeps resetting when you use the &amp;quot;Release&amp;quot; configuration for some reason. Could you please try to place a breakpoint inside the app error handler to confirm that the reset is performed by the error handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Global variable</title><link>https://devzone.nordicsemi.com/thread/323197?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 02:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f78c80b-2c6d-4d0e-ac34-13e2c7ed9bd2</guid><dc:creator>xiang san </dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks , when I select the &amp;#39;Debug&amp;#39;，the&amp;nbsp;log printing is normal and no error is reported,when I select the &amp;#39;release&amp;#39; the log printing is:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8863.log"&gt;devzone.nordicsemi.com/.../8863.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;, So what is the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Global variable</title><link>https://devzone.nordicsemi.com/thread/323086?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 12:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b01718a0-01c8-4ec5-9503-ebc1f82314ef</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I guess it might be caused by a stack overflow. Have you been able to debug the application to see what kind of error you are getting? Also, have you configured the app error handler (see &lt;span&gt;&lt;a title="Error module" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_error.html?cp=8_1_3_13"&gt;Error module&lt;/a&gt;&lt;/span&gt;) to not automatically reset the device when it receives an error?&lt;/p&gt;
&lt;p&gt;Please select the &amp;#39;Debug&amp;#39; build configuration if you are using Segger embedded studio for debuging:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1627992171460v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You may also want to enable &amp;#39;NRF_LOG_BACKEND_RTT_ENABLED&amp;#39; in sdk_config.h if you haven&amp;#39;t already. This should make debug logs appear in the SES debug terminal when you debug the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>