adafruit / Adafruit_nRF52_Bootloader

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

Reset into app, if no USB connection in 3s #143

Closed mmoskal closed 4 years ago

mmoskal commented 4 years ago

This only applies in SINGLE_TAP_RESET mode (MakeCode) - in that mode the board goes into bootloader by default for easy programming. However, if the board is not connected to computer, we should go into app (this is what we do on SAMD and STM32). This sets a 3000ms timeout if the USB is not enumerated.

Note, that such long delay was needed for certain versions of macOS - 10.14.4 until, but not including, Catalina.

mmoskal commented 4 years ago

Thank for comments, updated!