mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-30 00:33:41 +08:00
reflash: give the bootloader time to start before SPI (#2530)
This commit is contained in:
committed by
firestar5683
parent
c4a2445692
commit
36e5d2bd14
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user