From 4452ceafa0c54681819867753a19546e85be53e5 Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Wed, 25 Mar 2026 11:21:22 +0000 Subject: [PATCH] Issue exit_xip before erasing This is required on RP2040 when erasing using --range - the other flash commands (eg load) already add it for all chips so do the same here, rather than filtering as RP2040 only --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index dbd573b..1b2446c 100644 --- a/main.cpp +++ b/main.cpp @@ -4752,6 +4752,7 @@ bool erase_command::execute(device_map &devices) { { progress_bar bar("Erasing: "); + con.exit_xip(); for (uint32_t addr = start; addr < end; addr += FLASH_SECTOR_ERASE_SIZE) { bar.progress(addr-start, end-start); con.flash_erase(addr, FLASH_SECTOR_ERASE_SIZE);