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.

ESP32-C3 bootloop

See original GitHub issue

I’ve an ESP32-C3 (2MB) but I’m unable to flash this through platformIO. It keeps resetting in a bootloop:

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d0f62
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd6100,len:0x38c
load:0x403ce000,len:0x6a8
load:0x403d0000,len:0x2358
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d0f62
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd6100,len:0x38c
load:0x403ce000,len:0x6a8
load:0x403d0000,len:0x2358
entry 0x403ce000

I’ve tried setting platform = https://github.com/Jason2866/platform-espressif32/releases/download/v2.0.3-rc1/platform-espressif32-2.0.3-rc1.zip

But this does not work.

My full config:

platform = https://github.com/Jason2866/platform-espressif32/releases/download/v2.0.3-rc1/platform-espressif32-2.0.3-rc1.zip
board = esp32-c3-devkitm-1
board_build.filesystem = littlefs
framework = arduino
monitor_speed = 115200
upload_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
board_upload.flash_size = "2MB"
board_upload.maximum_size = 2097152
board_build.flash_mode = dio
board_build.f_flash = 40000000L

I’ve verified it is working with arduino IDE.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:58 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
Jason2866commented, Sep 8, 2022

So verified, you have a board rev which is not supported from Arduino.

1reaction
Jason2866commented, Sep 8, 2022

Ouuch, the advanced example uses a not possible GPIO in line23 int LED_PIN = 13; when mode qio is used. GPIO 12 and GPIO13 (page 12. in datasheet) are needed for QIO with SPI. It is always a bad idea to define a Led to fixed GPIO @hpsaturn

Read more comments on GitHub >

github_iconTop Results From Across the Web

Boot loop on ESP32-C3 · Issue #622 - GitHub
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 ...
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 >
Unable to program/Boot loop custom ESP32-C3-MINI board
What I'm experiencing here is a boot loop that does not let me program the board. The power elements (load sharing P-MOSfet, USB...
Read more >
XIAO ESP32-C3 on bootloop when using Adafruit Neopixel ...
Hello, everybody! I'm starting to use Seed Studio XIAO ESP-C3. I uploaded it a couple of very simple Arduino test programs successfully.
Read more >
Bootloader - ESP32-C3 - — ESP-IDF Programming Guide v5 ...
Select the application partition to boot, based on the partition table and ota_data (if any);. Load this image to RAM (IRAM & DRAM)...
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