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
  • Sadly it is still not work for me. After adding the __WFI(); the DFU still needs to do twice. And the first time DFU's transmit speed is much slower. And I found my nrf_dfu.c doesn't have sd_app_evt_wait(); in wait_for_event(). My sdk is 12.2. I knew it can use timer to feed the dog in bootloader but when I added it, the storage is over the limit.

Reply
  • Sadly it is still not work for me. After adding the __WFI(); the DFU still needs to do twice. And the first time DFU's transmit speed is much slower. And I found my nrf_dfu.c doesn't have sd_app_evt_wait(); in wait_for_event(). My sdk is 12.2. I knew it can use timer to feed the dog in bootloader but when I added it, the storage is over the limit.

Children
No Data
Related