<?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>Bug in WDT firmware in SDK 16.0.0 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72217/bug-in-wdt-firmware-in-sdk-16-0-0</link><description>I am trying to use the NRFX_WDT design in SDK 16.0.0 on a board using the nRF52832. 
 In the file nrfx_wdt.c, the allocation index is declared/defined as: 
 static uint8_t m_alloc_index; 
 However, this variable is not initialized before being used e</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Mar 2021 13:09:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72217/bug-in-wdt-firmware-in-sdk-16-0-0" /><item><title>RE: Bug in WDT firmware in SDK 16.0.0 ?</title><link>https://devzone.nordicsemi.com/thread/297516?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 13:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23f61313-3d6b-4c3d-b446-3954eb940bca</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi RMV,&lt;/p&gt;
&lt;p&gt;To be honest this has always been part of my understanding of the C programming language. And it seems to be covered by many introductory texts, such as &lt;a href="https://www.tutorialspoint.com/cprogramming/c_scope_rules.htm"&gt;here&lt;/a&gt;. I have not&amp;nbsp;dived into the standard documents, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in WDT firmware in SDK 16.0.0 ?</title><link>https://devzone.nordicsemi.com/thread/297269?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 15:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c2a18e1-07e4-43da-8da4-47eff5388724</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Can you point to a specific portion of say the C11 standard where your claim is listed?&lt;/p&gt;
&lt;p&gt;I have done a quick word search for &amp;#39;initial&amp;#39; and &amp;#39;initialized&amp;#39; but other than the fact that the standard says that static global values are &amp;#39;initialized once at program start&amp;#39; I do not see where it says it must be the value &amp;#39;0&amp;#39; (at least for an integer class variable).&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;RMV&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in WDT firmware in SDK 16.0.0 ?</title><link>https://devzone.nordicsemi.com/thread/297158?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 11:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04513d3c-fef0-4799-8f00-a6c1f40a50fc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi RMV,&lt;/p&gt;
&lt;p&gt;Static or global variables are never uninitialized in C.&amp;nbsp;Unless explicitly initialized to another value, they are implicitly initialized to zero. (Personally I prefer to explicitly set to zero to avoid confusion, but it is not required.) Local variables on the other hand are not implicitly initialized, so if this was a local variable, then it would have been a bug.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>