From 36e5d2bd14c6d01672df2877f54df17eb5903b4e Mon Sep 17 00:00:00 2001 From: Daniel Koepping Date: Sat, 28 Nov 2026 11:50:19 -0600 Subject: [PATCH] reflash: give the bootloader time to start before SPI (#2530) --- panda/scripts/reflash_internal_panda.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/scripts/reflash_internal_panda.py b/panda/scripts/reflash_internal_panda.py index e892faf876..7e9c49491c 100755 --- a/panda/scripts/reflash_internal_panda.py +++ b/panda/scripts/reflash_internal_panda.py @@ -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")