Skip to content

Commit

Permalink
boards/samd21-arduino-bootloader: increase preflash delay
Browse files Browse the repository at this point in the history
The USB bootloader can take a while to be ready / Linux takes a while
to set up the interface.
1s is right at the edge, leading to races and often failed flashing.

Bump the delay to 2s for a wider safety margin, with this flashing is
a lot more reliable.
  • Loading branch information
benpicco committed Feb 9, 2021
1 parent 91e863f commit 1d638bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boards/common/samd21-arduino-bootloader/Makefile.include
Expand Up @@ -12,4 +12,5 @@ ifeq ($(PROGRAMMER),bossa)
ROM_OFFSET ?= 0x2000
endif
BOSSA_ARDUINO_PREFLASH = yes
PREFLASH_DELAY ?= 2
endif

0 comments on commit 1d638bf

Please sign in to comment.