ESP32-C3 - Cannot upload sketch

Hello everyone,

I am facing an issue with the Seeed Studio XIAO ESP32-C3. I cannot upload code to it anymore.

When I try to upload even the bare minimum sketch (empty setup() and loop()), I get an error (see the bottom of this message).

This problem started after I uploaded code that used the TaskScheduler library. In the serial monitor, I see that the board keeps rebooting with the error Guru Meditation Error: Core 0 panic'ed (store access fault). Exception was unhandled.

Upload error:
Sketch uses 215740 bytes (16%) of program storage space. The maximum is 1310720 bytes.
Global variables use 15660 bytes (4%) of dynamic memory, leaving 312020 bytes for local variables. The maximum is 327680 bytes. v4.5.1
Serial port COM3
Chip is ESP32-C3 (revision v0.4)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 64:e8:33:12:55:f8
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600

A fatal error occurred: No serial data received.
Failed uploading: uploading error: exit status 2

Thank you.

After a lot of searching online, I finally found the solution :white_check_mark:: "Unable to verify flash chip connection" with strange boot log. (ESPTOOL-612) · Issue #836 · espressif/esptool · GitHub