adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
445 stars 401 forks source link

Why boot drive timeout? #164

Closed dhalbert closed 4 years ago

dhalbert commented 4 years ago

With this UF2bootloader (not the Atmel one), there is a timeout after several minutes when the boot drive disappears. Currently this seems to be causing a Finder crash in some circumstances. See https://forums.adafruit.com/viewtopic.php?f=65&t=168987.

@hathach Is the timeout deliberate? What was the motivation? Thanks.

hathach commented 4 years ago

Yes, the timeout is deliberate, it is there when we first started based on Nordic bootloader example. So I am not sure on the motivation either. We can remove it if you think it is better that way.

PS: actually I think it is better to be removed to be consistent with samd uf2

dhalbert commented 4 years ago

Yes,thanks, then, let's remove it, since it's causing actual crashes on vulnerable hosts (which shouldn't happen). I can't remember, is there a self-updater yet, or did that turn out to be impossible or extremely difficult?

kevinjwalters commented 4 years ago

I timed an Adafruit CLUE (connected to a Windows host) at 300 (+/-1) seconds, btw. The posts mention 4 minutes. I assume this is just an estimation but it would be interesting if there is a difference here somewhere.

hathach commented 4 years ago

oh, the bootloader is already updated that does not time out when uf2 is mounted, we just haven't released it yet. Though, we can remove it all for good as well.