question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Boot loop on ESP32-C3

See original GitHub issue

I am using the feature/arduino-idf-master and the arduino framework for ESP32-C3. At one point this used to work, but sometime in early August it seems something broke. Today I had a chance to look a bit more closely, and it seems that the current board config for esp32-c3-devkitm-1 leads to a boot loop (at least on my board):

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x10 (RTCWDT_RTC_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3fcd6100,len:0x1428
ets_loader.c 78 
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40049a42
SPIWP:0xee
mode:QIO, clock div:1
load:0x3fcd6100,len:0x1428
ets_loader.c 78

It seems that using DIO via:

board_build.flash_mode = dio

does resolve the issue. I am pretty sure however that QIO at one point worked…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:20 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
agnerscommented, Feb 23, 2022

@lukedukeus setting board_build.flash_mode explicitly works around the problem:

esphome:
  ...
  platformio_options:
    board_build.flash_mode: dio
0reactions
Jason2866commented, Nov 11, 2022

@andychess Seems the board uses the inbuilt USB modem (CDC). Use a C3 boards json which is a CDC device too, or set the mode to use CDC for serial output manually.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESP32C3 forever loop at boot - ESP32 Forum
I have a custom board on ESP32C3, with possibility to fall into a deep sleep by external signal. As a source for power...
Read more >
ESP32-C3 boot loop 2MB flash - Home Assistant Community
Hi there! Setup: ESPHome v2022.9.1 docker I've recently bought an ESP32-C3 board thinking it would be as easy to connect as my other...
Read more >
Boot Mode Selection - ESP32-C3 - Espressif Systems
In Linux serial ports by default will assert RTS when nothing is attached to them. This can hold the ESP32-C3 in a reset...
Read more >
ESP32 S3 continuously resetting instead of printf'ing anything
Try what's said in Boot loop on ESP32-C3 · Issue #622 · platformio/platform-espressif32 · GitHub, aka adding board_build.flash_mode = dio.
Read more >
ESP32 C3 Boot loop "SHA-256 arduino ide comparison failed ...
I updated all the pins to my new configuration (missed a few the first time) but when the C3 tries to boot, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found