<?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>Enable watchdog in early boot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88317/enable-watchdog-in-early-boot</link><description>I&amp;#39;ve been trying to enable the watchdog as early as possible during boot. I haven&amp;#39;t been able to find any way to configure the nrf52832 watchdog to enable itself prior to code execution (nothing in the nrf52832 manual indicates this is possible). My next</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Feb 2025 19:30:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88317/enable-watchdog-in-early-boot" /><item><title>RE: Enable watchdog in early boot</title><link>https://devzone.nordicsemi.com/thread/525156?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 19:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f8a04a8-c66a-4e95-9dcc-c3ad9621ef52</guid><dc:creator>Jonathan-WDTL</dc:creator><description>&lt;p&gt;Got an email indicating there is a lot of interest in answer to this.&lt;br /&gt;&lt;br /&gt;Can do without modifying mcuboot, by modifying zephyr&amp;#39;s board files instead. The board file is built into both the zephyr app and mcuboot.&lt;br /&gt;&lt;br /&gt;Copied board to our apps folder (so we&amp;#39;re not modifying zephyr&amp;#39;s repo) then add a new source file to zephyr board&amp;#39;s CMakeLists.txt.&lt;br /&gt;Add a function to init watchdog in the source file.&lt;br /&gt;Use zephyr&amp;#39;s sys init to call it where you want during OS startup.&lt;br /&gt;i.e. SYS_INIT(your_fn, POST_KERNEL, 41);&lt;br /&gt;&lt;br /&gt;The board file is built by both application and bootloader, we only wanted in bootloader, so wrapped the sys_init call in #ifdef CONFIG_MCUBOOT.&lt;br /&gt;&lt;br /&gt;Wrt feeding from application after doing this, zephyr&amp;#39;s wdt_feed call works fine with this setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable watchdog in early boot</title><link>https://devzone.nordicsemi.com/thread/370531?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 21:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60b227be-f8e3-4a81-a7cf-74582c478b72</guid><dc:creator>Jonathan-WDTL</dc:creator><description>&lt;p&gt;I had a meeting with some people from nordic. They were also suggesting the same thing, but they weren&amp;#39;t sure of whether it was possible to pass an additional source file to the mcuboot build via application cmakelists or additional args to west build. They said they were going to check with colleagues who knew a bit more about how the multi-image build system works. Probably if there isn&amp;#39;t any way to do that, then as you say, modifying mcuboot would be the only way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable watchdog in early boot</title><link>https://devzone.nordicsemi.com/thread/370457?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 13:08:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ac95de1-b967-4c73-ae68-faa9eb096767</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think it is possible to enable a function before MCUBoot which is implemented in your application and hence modifying the MCUBoot should be the solution.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>