From 4a0f6c298c8fffde08212f864e82f663c1504c8c Mon Sep 17 00:00:00 2001 From: dragonmux Date: Fri, 17 Nov 2023 23:37:11 +0000 Subject: [PATCH] esp32c3: Enabled mass erase --- src/target/esp32c3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/target/esp32c3.c b/src/target/esp32c3.c index dc52b32ef83..9622a298d8c 100644 --- a/src/target/esp32c3.c +++ b/src/target/esp32c3.c @@ -162,6 +162,8 @@ bool esp32c3_probe(target_s *const target) target->halt_request = esp32c3_halt_request; target->halt_resume = esp32c3_halt_resume; target->halt_poll = esp32c3_halt_poll; + /* Provide an implementation of the mass erase command */ + target->mass_erase = bmp_spi_mass_erase; /* Establish the target RAM mappings */ target_add_ram32(target, ESP32_C3_IBUS_SRAM0_BASE, ESP32_C3_IBUS_SRAM0_SIZE);