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

Buttonless Secure DFU with WDT needs DFU twice

I use nrf51822xxAC,SDK 12.2,Buttonless Secure DFU and WDT in application.

I added NRF_WDT->RR[0] = WDT_RR_RR_Reload; to the wait_for_event loop in the DFU to pet the dog.

But it needs to DFU twice to let the chip run into application.

The same question in this link.

Could anyone help me?

Parents
    1. The 51822 chip is running into application(WDT runs too)
    2. Use iOS nRF toolbox to do DFU with the relating secure Zip file that have application but no bootloader or softdevice in it.(The first time DFU)
    3. The DFU finish in App but the 51822 chip is still adverting as DfuTarg and run in bootloader proram not in application.
    4. Use iOS nRF toolbox to do DFU with the same secure Zip file again.(The second time DFU)
    5. The DFU finish in App and the 51822 chip runs into application.
Reply
    1. The 51822 chip is running into application(WDT runs too)
    2. Use iOS nRF toolbox to do DFU with the relating secure Zip file that have application but no bootloader or softdevice in it.(The first time DFU)
    3. The DFU finish in App but the 51822 chip is still adverting as DfuTarg and run in bootloader proram not in application.
    4. Use iOS nRF toolbox to do DFU with the same secure Zip file again.(The second time DFU)
    5. The DFU finish in App and the 51822 chip runs into application.
Children
No Data
Related