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
  • You'll have to "feed" the watchdog in the bootloader, i.e. call

    NRF_WDT->RR[0] = 0x6E524635UL;
    

    in order to prevent the watchdog timer from timing out and resetting the chip.

    -Bjørn

  • I think the best way to solve the problem in hand would be to stop the watchdog in the bootloader, or set the timeout into infinite (what does mean "the registers are available for configuration again"?), if that is possible. But if not, then I need a solution that I asked above.

Reply
  • I think the best way to solve the problem in hand would be to stop the watchdog in the bootloader, or set the timeout into infinite (what does mean "the registers are available for configuration again"?), if that is possible. But if not, then I need a solution that I asked above.

Children
No Data