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

DFU time limit of 60 seconds can't be extended past 65 seconds?

Hi all,

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 ~35 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? Register is 16-bit instead of 32-bit?

How do I increase it to 2 or more minutes, for example?

Thanks! Gil

Edit: format

Parents Reply Children
Related