Watchdog reset during DFU

Hello,

While working on the DFU, I can't get MCUBoot to complete a slot swap ... The device always is reset due to the watchdog.

The watchdog is setup in the app. I know that once it is started, it can't be stopped; which is shy the bootloader should feed it.

If I don't enable the watchdog in the app, everything works fine.

I already added the following config to mcuboot.conf, but it does not help.

CONFIG_BOOT_WATCHDOG_FEED=y
CONFIG_WATCHDOG=y

Since I wasn't sure of the usage, I also added this to mcuboot_config.h

  #define MCUBOOT_WATCHDOG_FEED()
     do { 
        wdt_feed(wdt, wdt_channel_id);
      } while (0)
 

What am I missing ? Is there a specific setting I need to have when enabling the watchdog. I currently use wdt_install_timeout(),  wdt_setup() and wdt_feed().

Thanks.

Parents Reply Children
Related