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

How to use the watchdog when DFU

Hi

I opened the Watchdog in the user application,and do nothing in the bootloader.Then when I use DFU,the CPU reset appears.How can I to deal with it?

And when I upgrade willful termination APP(nRF Toolbox),the CPU(nRF52832)is down,and can't work.Do you have any suggestions on how to solve this fault tolerance?

Thank you!

Parents
  • One thing you may consider what I have applied is the WDT settings in the nrf_drv_config.h I use

    #define WDT_CONFIG_BEHAVIOUR     NRF_WDT_BEHAVIOUR_PAUSE_SLEEP_HALT
    

    Since bootloader with bluetooth most of the time waits for events, no timeout is occuring for the duration of the update process. Thus far I have implemented 10 second and 30 second timeouts for watchdog and both successfully have enabled to finish the dfu process. I am using nRF51 and legacy dfu.

Reply
  • One thing you may consider what I have applied is the WDT settings in the nrf_drv_config.h I use

    #define WDT_CONFIG_BEHAVIOUR     NRF_WDT_BEHAVIOUR_PAUSE_SLEEP_HALT
    

    Since bootloader with bluetooth most of the time waits for events, no timeout is occuring for the duration of the update process. Thus far I have implemented 10 second and 30 second timeouts for watchdog and both successfully have enabled to finish the dfu process. I am using nRF51 and legacy dfu.

Children
Related