From 717d693d0bcd843e9ab7ec701a4d76153a355372 Mon Sep 17 00:00:00 2001 From: Marek Kraus Date: Tue, 22 Nov 2022 13:57:56 +0100 Subject: [PATCH] Wait a bit so BootROM can init after reset --- lib/blisp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/blisp.c b/lib/blisp.c index a98da75..a80bfa4 100644 --- a/lib/blisp.c +++ b/lib/blisp.c @@ -149,6 +149,7 @@ blisp_device_handshake(struct blisp_device* device, bool in_ef_loader) { sp_set_dtr(serial_port, SP_DTR_OFF); sleep_ms(100); sp_set_rts(serial_port, SP_RTS_OFF); + sleep_ms(50); // Wait a bit so BootROM can init } uint32_t bytes_count = device->chip->handshake_byte_multiplier * (float)device->current_baud_rate / 10.0f;