ESP32 Keeps rebooting after code uploaded

bhavish030
Posts: 1
Joined: Mon May 27, 2019 3:37 pm

ESP32 Keeps rebooting after code uploaded

Postby bhavish030 » Mon May 27, 2019 3:43 pm

Hello all,

I've seen the previous similar issues, but i don't know yet if there has been a fix to this since i can't really understand the explanations and i a newbie to ESP32. Very sorry for that but can anyone explain to me clearly, if possible, how to fix my ESP32.
These are the errors appearing on my serial monitor:

Code: Select all

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:10088
load:0x40080400,len:6380
entry 0x400806a4
assertion "offset == dataSize" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/nvs_storage.cpp", line 438, function: esp_err_t nvs::Storage::readMultiPageBlob(uint8_t, const char*, void*, size_t)
abort() was called at PC 0x400d64fb on core 0

Backtrace: 0x4008c470:0x3ffb53b0 0x4008c6a1:0x3ffb53d0 0x400d64fb:0x3ffb53f0 0x400db231:0x3ffb5420 0x400db29c:0x3ffb54a0 0x400da366:0x3ffb5500 0x400da899:0x3ffb5540 0x400d8cb1:0x3ffb5560 0x400d907a:0x3ffb55d0 0x400d9422:0x3ffb5600 0x4010d501:0x3ffb5630 0x4010d604:0x3ffb5660 0x4010d8fa:0x3ffb5690 0x4010da7b:0x3ffb56c0 0x400885e4:0x3ffb56e0 0x4008e6f1:0x3ffb5720
Actually i have 4 ESP32 and each one of them used to work perfectly until last week 3 of them started to behave abnormally for no reasons.
If anybody can help me out to fix this, that would really save my life>.
Thank you

Protos
Posts: 3
Joined: Sun Jun 02, 2019 8:45 am

Re: ESP32 Keeps rebooting after code uploaded

Postby Protos » Sun Jun 02, 2019 3:47 pm

I suspect if the ESP32 keeps rebooting you're having brownout issues This happens sometimes when your code starts up WiFi etc and the power demand is too high for the supply.

Try this; At the top of your sketch put this

Code: Select all

#include "soc/soc.h"
#include "soc/rtc
then in setup() add

Code: Select all

WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);
If this is your problem, the brownout detector will be disabled and the ESP32 won't reboot but you should look at your supply for a proper fix. However, I disable brownout detection all the time. Hope this helps.

Steve.

Protos
Posts: 3
Joined: Sun Jun 02, 2019 8:45 am

Re: ESP32 Keeps rebooting after code uploaded

Postby Protos » Sun Jun 02, 2019 3:49 pm

Sorry, Ive just scrolled down your error and seen that its probably NOT brownout. Teach me to jump in with both feet!

boarchuz
Posts: 606
Joined: Tue Aug 21, 2018 5:28 am

Re: ESP32 Keeps rebooting after code uploaded

Postby boarchuz » Mon Jun 03, 2019 3:13 am

There were breaking changes to the way the EEPROM library is handled recently. Judging by the NVS error and your claim it was working fine a little while ago, that's my guess.

I think you can either pull the very latest Arduino-ESP32 from GitHub or roll back to whatever you had when it was working fine.

infernox64
Posts: 1
Joined: Fri Dec 22, 2023 8:23 pm

Re: ESP32 Keeps rebooting after code uploaded

Postby infernox64 » Fri Dec 22, 2023 8:32 pm

To anyone still having this problem:
I solved it simply by downgrading the esp32 board package by espressif in the arduino board manager.
if your version is 2.0.11, select 2.0.10 and install that instead. it will replace the newer version automatically.
Apparently 2.0.11 breaks a bunch of libraries including the Heltec libraries, if you have one of those boards
esp32fix.png
esp32fix.png (148.38 KiB) Viewed 7487 times

krunalramkar
Posts: 2
Joined: Tue Jul 23, 2024 3:06 pm

Re: ESP32 Keeps rebooting after code uploaded

Postby krunalramkar » Tue Jul 23, 2024 3:08 pm

Thanks for Downgrade ESP32 to 2.0.10 from Board/Library management in Ardiuno IDE its stop resetting Problem i have Solved problem by this Thanks :D

Who is online

Users browsing this forum: No registered users and 63 guests