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

DFU and Watchdog

Dear all,

As some of you have pointed out, if we want to perform DFU and having a watchdog running, the boot loader should embed a watchdog feed. I have successfully managed to do so. And DFU performs OK until the app reboots. Then, I loose my app and the NRF restarts in my boot loader mode. If I remove the watchdog everything works perfectly.

Did anyone had that issue and may give some ideas to process completely the DFU. The only way I can retrieve my app is to flash completely my NRF. Thanks for your answers,

Cheers,

D.

Parents
  • Hi David,

    Thanks for your wish. I hope you had a great Xmas holidays as well.

    Adding the trace to bootloader would really help. We need to track down if the DFU process is finished on the bootloader and the bootloader forwards the PC to the application or not.

    You can also try to read the flash out and check if the new image is copied in place in bank 0 or not.

    My suspicion is that the image is sent and received, but the bootloader hasn't managed to copy the image to bank 0 and mark the application as valid application, maybe watch dog is not fed on time and triggers a reset before the DFU process finish.

Reply
  • Hi David,

    Thanks for your wish. I hope you had a great Xmas holidays as well.

    Adding the trace to bootloader would really help. We need to track down if the DFU process is finished on the bootloader and the bootloader forwards the PC to the application or not.

    You can also try to read the flash out and check if the new image is copied in place in bank 0 or not.

    My suspicion is that the image is sent and received, but the bootloader hasn't managed to copy the image to bank 0 and mark the application as valid application, maybe watch dog is not fed on time and triggers a reset before the DFU process finish.

Children
No Data
Related