ESP32-S2 reset loop on startup, sometimes it boots

degesz
Posts: 3
Joined: Wed Nov 05, 2025 8:53 am

ESP32-S2 reset loop on startup, sometimes it boots

Postby degesz » Wed Nov 05, 2025 9:06 am

Hello, I'm having a problem with esp32-s2 (specifically the S2-MINI-N4 module)

I have this module on a custom board. when I reset it, it enters a boot reset loop, dumping this into serial:

Code: Select all

rst:0x3 (RTC_SW_SYS_RST),boot:0x1b (SPI_FAST_FLASH_BOOT)
Saved PC:0x400512fe
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x524
load:0x4004c000,len:0xa70
load:0x40050000,len:0x2958
entry 0x4004c18c
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
Sometimes, after seemingly random amount of reset cycles, it boots and runs my code.

The code is just a LED blink with serial:

Code: Select all

#include <Arduino.h>


const int LED_PIN = 2; // On-board LED is usually GPIO 2

void setup() {
  Serial.begin(115200);           // Start Serial Monitor
  delay(1000);                    // Give time for Serial to open
  Serial.println("ESP32 Blink Test Starting...");

  pinMode(LED_PIN, OUTPUT);
}

void loop() {
  Serial.println("LED ON");
  digitalWrite(LED_PIN, HIGH);
  delay(1000); // Wait 1 second

  Serial.println("LED OFF");
  digitalWrite(LED_PIN, LOW);
  delay(1000); // Wait 1 second
}
My platformio.ini file is this:

Code: Select all

[env:esp32-s2-saola-1]
platform = espressif32
board = esp32-s2-saola-1
framework = arduino
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
Do you know what could be causing this? the same setup worked correctly on a previous revision of my board, so I suspect it might be a hardware problem.
I checked power with oscilloscope, the 3V3 is solid.
Basically all pins are connected to something. Are there any specific pins I should check?
Image

degesz
Posts: 3
Joined: Wed Nov 05, 2025 8:53 am

Re: ESP32-S2 reset loop on startup, sometimes it boots

Postby degesz » Wed Nov 05, 2025 9:50 am

Is it possible that the ESP was damaged in RoHS testing? it was done with XRF spectrometer (X-ray)

lbernstone
Posts: 1132
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-S2 reset loop on startup, sometimes it boots

Postby lbernstone » Thu Nov 06, 2025 3:40 am

You should not use the chip pull-up (EN) as the reset for the LCD. Either use a gpio, or tie it to 3v3.

degesz
Posts: 3
Joined: Wed Nov 05, 2025 8:53 am

Re: ESP32-S2 reset loop on startup, sometimes it boots

Postby degesz » Thu Nov 06, 2025 8:36 pm

You should not use the chip pull-up (EN) as the reset for the LCD. Either use a gpio, or tie it to 3v3.
Yes, I know this isn't the proper way to reset the LCD, the schematic was drawn by someone else.
This doesn't cause the resetting issue though, it was done this way on previous revision and it worked fine

lbernstone
Posts: 1132
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-S2 reset loop on startup, sometimes it boots

Postby lbernstone » Fri Nov 07, 2025 4:51 pm

Reboots without any backtrace or panic are typically a power issue. That could be a boot timing issue, inadequate capacitance, or just not enough current available from your power supply.

Who is online

Users browsing this forum: Bytespider and 3 guests