# ESP32-C3 CAN'T Upload New Sketch After Previous Upload

**URL:** <https://forum.arduino.cc/t/esp32-c3-cant-upload-new-sketch-after-previous-upload/1261620>\
**Category:** Uploading\
**Created:** [May 18, 2024, 9:31pm UTC](https://forum.arduino.cc/t/esp32-c3-cant-upload-new-sketch-after-previous-upload/1261620 "2024-05-18T21:31:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sumguy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sumguy/32/1134826_2.png) [@sumguy](https://forum.arduino.cc/u/sumguy)\
**Post date:** [May 20, 2024, 1:32am UTC](https://forum.arduino.cc/t/esp32-c3-cant-upload-new-sketch-after-previous-upload/1261620/5 "2024-05-20T01:32:15Z")

</div>

@oldguy_47

I wouldn't give up on it yet, you could try erasing all flash with the esptool.exe.

esptool.exe should get installed with the esp32 board package so you should have it already.

It's easy and goes like this

Make sure there are no other microcontrollers connected to your PC

Open the Windows cmd prompt and type the following

esptool.exe --port COM5 --baud 921600 erase\_flash

If you get the message "Chip erase completed successfully" open the Arduino IDE and see if you can compile and upload the blink.ino sketch

---

_[View the full topic](https://forum.arduino.cc/t/esp32-c3-cant-upload-new-sketch-after-previous-upload/1261620)._
