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.

  • Hi, Could you explain a little bit more this part: "And DFU performs OK until the app reboots." ? was the new image flashed ? When is exactly the rebooting ? And after that what happens ? The nRF chip only stay in bootloader mode or switch to application ?

  • Hi Hung Bui, Thanks for taking time.

    Unfortunately, I may not be extremely precise. Let me do my best and if necessary, I'll refine.

    The new firmware seems to be uploaded to the NRF. The progress shows 100% and Operation completed. Then, the module disconnects from the mobile app. And, after "a few seconds", the nrf gets back to boot loader. It is as-if the watchdog resets the module in boot loader mode.

    I have the RTT trace activated in my app but not on the boot loader. The app does not show up after Operation completed. I'll try to activate the trace in the boot loader and try to see what is going on in the boot loader.

    One more thing, I am doing a secured DFU.

    Hope it provides some more directions for getting 'useful' help.

    Thanks again and happy holidays to all of you,

    D.

  • 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.

  • Hi, Despite my "work issues" Xmas break was fine! Not really back to work. So just to let you know that I'll push the tests and try to get a more precise view on what is going on. Thanks, and hope to get back after winter break (January, 3rd or so). Cheers and happy end of year! D.

  • Dear all,

    We have eventually sorted this out. We feed the watchdog in a timer every seconds. And the time runs until the app reboots and reboot is less then N seconds. Regards,

    David

    Regards.

Related