<?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>Value overflow in watchdog initialization code.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52368/value-overflow-in-watchdog-initialization-code</link><description>NRF5 SDK 15.3.0 has an issue in a module nrfx_wdt.c . In function nrfx_wdt_init line of code: nrf_wdt_reload_value_set((p_config-&amp;gt;reload_value * 32768) / 1000); causes to overflow when reload_value greater than 131072 ms. Please, fix this issue.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Feb 2020 09:53:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52368/value-overflow-in-watchdog-initialization-code" /><item><title>RE: Value overflow in watchdog initialization code.</title><link>https://devzone.nordicsemi.com/thread/235894?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 09:53:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:458544c2-977b-4685-817d-2c6364f82f01</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, this is fixed in SDK 16.0.0 (which uses a newer version of nrfx where this is fixed).&lt;/p&gt;
&lt;p&gt;The fix was to replace this from SDK 15.3:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_wdt_reload_value_set((p_config-&amp;gt;reload_value * 32768) / 1000);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With this in SDK 16.0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint64_t ticks = (p_config-&amp;gt;reload_value * 32768ULL) / 1000;
NRFX_ASSERT(ticks &amp;lt;= UINT32_MAX);

nrf_wdt_reload_value_set((uint32_t) ticks);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Value overflow in watchdog initialization code.</title><link>https://devzone.nordicsemi.com/thread/235795?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 21:03:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7879b169-eb0b-4e00-a6b4-4ea8fba6a5f3</guid><dc:creator>rshankle</dc:creator><description>&lt;p&gt;Has a new SDK been released that addresses this overflow?&amp;nbsp; &amp;nbsp;We need something in the 2,000,000 (mSec) range.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Value overflow in watchdog initialization code.</title><link>https://devzone.nordicsemi.com/thread/210948?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 13:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27c09eef-1dc0-4c2c-b2cc-d73e28810f1b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for reporting the issue. It has already been discussed &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51674/maximum-reload-time-for-wdt"&gt;here&lt;/a&gt; and should be fixed in a future SDK release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>