ESP32C3 flashing (un?)sucessfully

he_elsayed
Posts: 2
Joined: Wed Oct 02, 2024 8:44 am

ESP32C3 flashing (un?)sucessfully

Postby he_elsayed » Wed Oct 02, 2024 9:17 am

Hi,

I have attached the schematic of the circuit I am using. If there is information missing please let me know and I will provide it. I appreciate any help in advance!
schematic.png
schematic.png (114.56 KiB) Viewed 224 times

Whenever I connect to power while holding the boot button down I see the following in the serial monitor:

Code: Select all

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x5 (DOWNLOAD(USB/UART0/1))
Saved PC:0x400462dc
waiting for download
When I flash the board, it finishes normally and I get the following:

Code: Select all

Serial port /dev/ttyACM0
Connecting....
Chip is ESP32-C3 (QFN32) (revision v0.4)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 48:ca:43:e7:3d:84
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x0003bfff...
Flash will be erased from 0x00008000 to 0x00008fff...
SHA digest in image updated
Compressed 21440 bytes to 13046...
Writing at 0x00000000... (100 %)
Wrote 21440 bytes (13046 compressed) at 0x00000000 in 0.4 seconds (effective 422.9 kbit/s)...
Hash of data verified.
Compressed 178512 bytes to 93592...
Writing at 0x00036580... (100 %)
Wrote 178512 bytes (93592 compressed) at 0x00010000 in 2.4 seconds (effective 600.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 472.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Done
When I run monitoring after this I get the original message that it is still waiting for download. I press the reset button and then get an endless bootloop that repeats over and over:

Code: Select all

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40049a42
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x1824
ets_loader.c 78 
--- Error: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
--- Waiting for the device to reconnect
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40049a42
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x1824
ets_loader.c 78 
I am not sure whether this is a hardware or a software problem. I am trying to flash the basic hello world program from esp idf. Any feedback would be much appreciated as I have been struggling for the past days with this.

Thanks

he_elsayed
Posts: 2
Joined: Wed Oct 02, 2024 8:44 am

Re: ESP32C3 flashing (un?)sucessfully

Postby he_elsayed » Wed Oct 02, 2024 1:25 pm

Solved it after days of scratching my head. It was due to the flash mode, setting it to DIO as indicated in the bootloop doesn't work. I had to use an older version of the firmware that supports DOUT and use DOUT as flash mode. That works. Hope this helps someone in the future.

Who is online

Users browsing this forum: No registered users and 24 guests