This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

watchdog problem in DFU mode

Hello,

I'm trying DFU/bootloader.

  1. Using nus service
  2. Switch to dfu when necessary
  3. At this time, watchdog (2 Sec) enable state does not execute the bootloader because of watchdog. However, if watchdog disabled, bootloader is executed.

How can I run bootloader with watchdog enabled? I use SDK 12.3.0. - buttonless_dfu and bootloader_secure.

thanks.

Parents
  • None of the software cares if the WDT is running. I run the wdt in our dfu code. Without looking at your code I would guess that with a 2 sec window you are not providing enough time for the software to get into dfu mode and then refresh the WDT timer before it interrupts. Make sure you are refreshing the WDT timer sufficiently early in the DFU code and probably widen WDT window.

Reply
  • None of the software cares if the WDT is running. I run the wdt in our dfu code. Without looking at your code I would guess that with a 2 sec window you are not providing enough time for the software to get into dfu mode and then refresh the WDT timer before it interrupts. Make sure you are refreshing the WDT timer sufficiently early in the DFU code and probably widen WDT window.

Children
No Data
Related