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.
esptool.py v4.5.1
Serial port COM3
Connecting…
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.

EDIT:
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

Did you found any solution i am facing same issue

Hi There,
Have you tried to Hold BOOT button while connecting the serial port?
HTH
GL :slight_smile: PJ :v:

Hi, yes i tried that not working it giving error

A fattal error occurred : packet content transfer stopped (received 8 bytes)

Failed uploading: uploading error : exit status 2

I think issue with strapping gpio pins 2,8,9

I am using esp32 c3 super mini

Faizan Nazir

1 Like

You need to check that your board is selected correctly. If you are using xiao esp32c3, you need to select xiao esp32c3 instead of other development boards.

 esptool flash_id                                                                                                
esptool.py v4.7.0                                                                                                                                  
Found 3 serial ports                                                                                                                               
Serial port COM9                                                                                                                                   
Connecting...
Detecting chip type... ESP32-C3
Chip is ESP32-C3 (QFN32) (revision v0.4)
Features: WiFi, BLE
Crystal is 40MHz
MAC: dc:da:0c:8e:a0:bc
Uploading stub...
Running stub...
Stub running...
Manufacturer: 3f
Device: ffff
Detected flash size: Unknown
Hard resetting via RTS pin...
 esptool --no-stub --chip esp32c3 --port "COM9" --baud 921600  --before default_reset --after hard_reset write_flash --no-compress --flash_mode keep --flash_freq keep --flash_size keep 0x0 "C:\Users\hp 840 G5\AppData\Local\Temp\arduino\sketches\176DE3D0312A606C8CA421C07576CC1B/sketch_mar10a.ino.bootloader.bin" 0x8000 "C:\Users\hp 840 G5\AppData\Local\Temp\arduino\sketches\176DE3D0312A606C8CA421C07576CC1B/sketch_mar10a.ino.partitions.bin" 0xe000 "C:\Users\hp 840 G5\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\hp 840 G5\AppData\Local\Temp\arduino\sketches\176DE3D0312A606C8CA421C07576CC1B/sketch_mar10a.ino.bin"  
>> 
esptool.py v4.7.0
Serial port COM9
Connecting...
Chip is ESP32-C3 (QFN32) (revision v0.4)
Features: WiFi, BLE
Crystal is 40MHz
MAC: dc:da:0c:8e:a0:bc
Changing baud rate to 921600
Changed.
Enabling default SPI flash mode...
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00047fff...
Erasing flash...

A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption.

Hi there,
Something is wrong with the Flash Device…
the 3f is correct but not ‘ffff’
HTH
GL :slight_smile: PJ

Hi! I have check different forums many peoples face same problem with this chip

Hi there,
POST the Code you are sending it and please use the </> tags above.
Sure A lot of beginners get tripped up by the complexities of the PIP and PMI as it’s not an Arduino.
HTH
GL :slight_smile: PJ

There is no code. I used empty void setup and void loop. I think my chip is without flash memory or flash memory is demage on github esp tool i found same issue they stated hardware issue not software

Hi! i found there are 2 version of esp32 c3 1 with internal flash and 1 without so this one is without internal flash memory. I baught new one from local market and its working now.