I bought a 2-pack of ESP32C3 Super-mini MCUs but I am unable to flash anything onto them.
I'm just trying to flash the example "Blink Sketch" that is available in the Arduino IDE (Version 2.3.2) and I have installed the esp32 boards (Version 2.0.11) in the Arduino IDE. When I plug in the ESP32s both of them seem to "bootloop", I constantly hear the sound of a USB device disconnecting.
- The board that is selected in the Arduino IDE is "ESP32C3 Dev Module"
- I have lowered the Baud rate to everything the IDE has to offer
- I tried connecting
PIN9toGNDwhich stopped the bootlooping issue but I still couldn't flash anything - I have tried holding down the "BOOT" button while connecting, this also stopped the bootloops but it results in different errors
- I tried enabling USB CDC On Boot which did nothing
- I tried using 2 different USB-C to USB-C Cables on 2 different ports
When I connect PIN9 to GND OR when I press and hold the BOOT button, the following error occurs during flashing:
Sketch uses 216800 bytes (16%) of program storage space. Maximum is 1310720 bytes. Global variables use 13404 bytes (4%) of dynamic memory, leaving 314276 bytes for local variables. Maximum is 327680 bytes. esptool.py v4.5.1 Serial port COM5 Connecting... Chip is ESP32-C3 (revision v0.4) Features: WiFi, BLE Crystal is 40MHz MAC: dc:da:XX:XX:XX:XX Uploading stub... Running stub... Stub running... 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... Compressed 13216 bytes to 9528... A fatal error occurred: Packet content transfer stopped (received 8 bytes) Failed uploading: uploading error: exit status 2 And this is what the Serial Monitor shows:
ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0x5 (DOWNLOAD(USB/UART0/1)) Saved PC:0xxxxxxx waiting for download Small Update
When I plug in the ESP32 normally without holding any button or pulling down any pin, the following shows up on the serial monitor:
ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0xf (SPI_FAST_FLASH_BOOT) Saved PC:0x4004c0d4 invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff (this goes on endlessly) Could they just be broken?