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

Would DFU have timeout counting to prevent unexpected entering?

Hi sir If nRF51822 unexpectedly enter DFU OTA mode, did boot loader have timeout counting to exit DFU? Besides, if nRF51822 entered DFU mode and didn't update new firmware, nRF51822 still can work with old firmware after exiting DFU? Thanks

Parents Reply Children
  • Hi Ole, This 60-second limit is not enough for us. Our application is 48 kB & takes 35 seconds to upload. It should be enough, but the problem is that our iOs app does DFU like this: 1. Sends a command to the main application to jump to Bootloader. 2. The application does so (sets bit in the gpregret), and the Bootloader statrts. 3. Problem: Now we cannot start the upload yet because we have to "forget this device (the application device)" in iOS, connect to the "DfuTarg" device (which takes a few seconds to be visible) and finally start the upload, but this process takes a little more than ~30 seconds. .... So the total time is about 70 seconds ! I tried to increase the time here (#define DFU_TIMEOUT_INTERVAL APP_TIMER_TICKS(120000, APP_TIMER_PRESCALER) to 2 minutes (12 s) but the maximum it goes is about 65 seconds. (65535 ?) Bug? How do I increase it to 2 minutes? Thanks! Gil

  • Running into the same issue -- did you ever manage to find a solution?

Related