<?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>watchdog on nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77065/watchdog-on-nrf9160</link><description>Dear Support 
 I try to use Watchdog on nRF9160 DK. 
 I found the sample ..\v1.5.1\zephyr\samples\drivers\watchdog 
 From there I add to my prj.conf 
 CONFIG_WATCHDOG=y CONFIG_WDT_LOG_LEVEL_DBG=y CONFIG_WDT_DISABLE_AT_BOOT=n 
 And to my source 
 #include</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Aug 2021 12:52:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77065/watchdog-on-nrf9160" /><item><title>RE: watchdog on nRF9160</title><link>https://devzone.nordicsemi.com/thread/323110?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 12:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc11a855-88f2-452a-9627-d2511a14fa67</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, the debugging interface is reset after a WDT reset, so this is expected behavior. You need to re-attach to the debugger after a WDT reset.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/pmureset.html?cp=2_0_0_4_0_4_7#reset_behaviour"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/pmureset.html?cp=2_0_0_4_0_4_7#reset_behaviour&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watchdog on nRF9160</title><link>https://devzone.nordicsemi.com/thread/321518?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 09:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5184e894-4fee-46df-973e-cdc149821d08</guid><dc:creator>Canastra</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I create a sample from the samples button and watchdog for nRF9160 DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/buttonWdt.zip"&gt;devzone.nordicsemi.com/.../buttonWdt.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The watchdog is feed as log as the button is not pressed.&lt;/p&gt;
&lt;p&gt;If the button is pressed the watchdog timeout and reset.&lt;/p&gt;
&lt;p&gt;Now the debugger does no longer stop on breakpoint and the&amp;nbsp;__BKPT() thrown a hardfault.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How can the debugger&amp;nbsp;use with breakpoints&amp;nbsp;after a dog reset?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watchdog on nRF9160</title><link>https://devzone.nordicsemi.com/thread/321416?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 15:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48b7ce9-00a1-4166-85bb-74b046a0a069</guid><dc:creator>Canastra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Now I can build with watchdog.&lt;/p&gt;
&lt;p&gt;I add the following flag:&amp;nbsp;&lt;span&gt;WDT_OPT_PAUSE_HALTED_BY_DBG&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;err = ::wdt_setup(wdt, WDT_OPT_PAUSE_HALTED_BY_DBG);&lt;/p&gt;
&lt;p&gt;Otherwise stepping isn&amp;#39;t possible,&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;ve the following problem.&lt;/p&gt;
&lt;p&gt;I feed the dog until i press a key.&lt;/p&gt;
&lt;p&gt;When I press the key the watchdog timeout and a hardfault is executed&lt;/p&gt;
&lt;p&gt;&lt;em&gt;[00:00:00.009,338] &amp;lt;err&amp;gt; os: ***** HARD FAULT *****&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.014,953] &amp;lt;err&amp;gt; os: r0/a1: 0x00000001 r1/a2: 0xffffffff r2/a3: 0x00000001&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.023,773] &amp;lt;err&amp;gt; os: r3/a4: 0x2001065c r12/ip: 0x0000f9c0 r14/lr: 0x0001071d&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.032,592] &amp;lt;err&amp;gt; os: xpsr: 0x21000000&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.037,872] &amp;lt;err&amp;gt; os: r4/v1: 0x000165cd r5/v2: 0x00000000 r6/v3: 0x00013880&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.046,691] &amp;lt;err&amp;gt; os: r7/v4: 0x00013880 r8/v5: 0x00013880 r9/v6: 0x00013880&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.055,511] &amp;lt;err&amp;gt; os: r10/v7: 0x00013880 r11/v8: 0x00013880 psp: 0x20010a30&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.064,300] &amp;lt;err&amp;gt; os: EXC_RETURN: 0xffffffbc&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.069,946] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0001836c&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.077,972] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.085,906] &amp;lt;err&amp;gt; os: Current thread: 0x20010218 (unknown)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;[00:00:00.092,773] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;As Reset reasen&amp;nbsp;00010000 is set. This is not a watchdog reset!&lt;/p&gt;
&lt;p&gt;After that the debugger does no longer break on a breakpoint.&lt;/p&gt;
&lt;p&gt;A power on Reset is required to work again.&lt;/p&gt;
&lt;p&gt;Can this improuved?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watchdog on nRF9160</title><link>https://devzone.nordicsemi.com/thread/320775?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 16:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19b9be8-1fa2-49fa-a433-4268e4394478</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, sorry for the late response. I tried adding the code you posted, and the configs to a standard sample in NCS, but it compiles just fine. Are you able to post the complete project here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>