reflash: give the bootloader time to start before SPI (#2530)

This commit is contained in:
Daniel Koepping
2026-11-28 11:50:19 -06:00
committed by firestar5683
parent c4a2445692
commit 36e5d2bd14
+2
View File
@@ -27,6 +27,8 @@ if __name__ == "__main__":
time.sleep(0.2)
gpio_set(GPIO.STM_RST_N, 0)
gpio_set(GPIO.STM_BOOT0, 0)
# give the bootloader time to start before any SPI traffic
time.sleep(0.01)
# bootstub flash takes 2s and is limited by the 255 byte flashing chunk size
print("flashing bootstub")