Arduino-esp32: ESP32-WROOM32: Issue with hardware or software?

Created on 13 Jul 2018  Â·  28Comments  Â·  Source: espressif/arduino-esp32

Please fill the info fields, it helps to get you faster support ;)

If you have a Guru Meditation Error, please decode it:
https://github.com/me-no-dev/EspExceptionDecoder

----------------------------- Remove above -----------------------------

Hardware:

Board: esp32wroom32 - Arduino ESP32 Dev Module, yes.
Core Installation/update date: latest, fresh install
IDE name: Arduino IDE 1.8.5, fresh install
Flash Frequency: 40Mhz?
Upload Speed: 115200

Description:

I don't know how this happened but I got a problem with 2 esp32 units -one with the below indicated issue, plus, another one I've just tried after having problems with the first ESP32 unit-.
I can compile any example or my own sketches but, once the sketch is loaded, it doesn't work and, through the serial monitor I can only get same message, which makes me think if both units have same problem (same day?) because of soft or hardware reasons (?) as "core 0" is continuously mentioned:

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:952
load:0x40078000,len:6084
load:0x40080000,len:7936
entry 0x40080310
assertion "index >= 0 && index < Nitems" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/compressed_enum_table.hpp", line 38, function: Tenum CompressedEnumTable::get(size_t) const [with Tenum = nvs::Page::EntryState; unsigned int Nbits = 2u; unsigned int Nitems = 126u; size_t = unsigned int]
abort() was called at PC 0x400d33ab on core 0

Backtrace: 0x400883f8:0x3ffc6fd0 0x400885fb:0x3ffc6ff0 0x400d33ab:0x3ffc7010 0x400d6292:0x3ffc7040 0x400d69b1:0x3ffc7090 0x400d6c37:0x3ffc7100 0x400d6ea5:0x3ffc7160 0x400d5bb6:0x3ffc71c0 0x400d5a11:0x3ffc7210 0x400d5acb:0x3ffc7230 0x400d5b16:0x3ffc7250 0x400d0a24:0x3ffc7270 0x400e569f:0x3ffc7290 0x400d430e:0x3ffc72c0
..............................................................................................................................................
Just in case:
I have re-installed Arduino IDE and also charged the last latest ESP32 library version (https://github.com/espressif/arduino-esp32).
I have pushed the "Boot" & "En" buttons for long times... doesn't matter: the sketch is compiled, and uploaded but... the ESP32 shows always same issue/message.
...............................................................................................................................................
I'm totally newbie with Arduino and programming (0 knowledge!) but I have been able to connect some sensors to both ESP32 units and connect them to a couple of IoT platforms and get those sensor values on the account I opened. However, since yesterday both units show same problem.

Sketch:

It doesn´t matter the sketch: the unit simply seems to reboot all time... (!)

Debug Messages:

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:952
load:0x40078000,len:6084
load:0x40080000,len:7936
entry 0x40080310
assertion "index >= 0 && index < Nitems" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/compressed_enum_table.hpp", line 38, function: Tenum CompressedEnumTable<Tenum, Nbits, Nitems>::get(size_t) const [with Tenum = nvs::Page::EntryState; unsigned int Nbits = 2u; unsigned int Nitems = 126u; size_t = unsigned int]
abort() was called at PC 0x400d33ab on core 0

Backtrace: 0x400883f8:0x3ffc6fd0 0x400885fb:0x3ffc6ff0 0x400d33ab:0x3ffc7010 0x400d6292:0x3ffc7040 0x400d69b1:0x3ffc7090 0x400d6c37:0x3ffc7100 0x400d6ea5:0x3ffc7160 0x400d5bb6:0x3ffc71c0 0x400d5a11:0x3ffc7210 0x400d5acb:0x3ffc7230 0x400d5b16:0x3ffc7250 0x400d0a24:0x3ffc7270 0x400e569f:0x3ffc7290 0x400d430e:0x3ffc72c0

Rebooting...

Can anyone help me to fix this?
Thank you very much in advance for any help!

Victor
P.s.: remember I am totally newbie on this subjects ('though I always try my best :-) )

stale

Most helpful comment

change the board to DOIT ESP32 DEVKIT V1. It worked for me for the bluetooth program. Hope this will help some one.

All 28 comments

As mentioned at the very top of the issue report, please run EspExceptionDecoder to determine what is throwing the exception in your code. If an example sketch like WiFiClient throws this same error, then wipe your device by running python esptool.py erase_flash and try again.

Thanks, Ibernstone. I'll try that this evening!

Is this in combination with the DeepSleep-Mode? I had issues with that in combination with the Serial.println function.

Nope, @thetotalwimmer , in my case it was after installing/adding "SmartConfig" a few days ago, 'though I am not saying that there is a "cause-effect" relationship.

Hi I buy new ESP32 from Ali express and after first program of blink , it is continuously showing the sw_reset issue on serial port. i also try python esptool.py erase_flash but it does not work and also following error
raceback (most recent call last):
File "esptool.py", line 37, in
import serial
ImportError: No module named serial

rst:0x3 (SW_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:9232
load:0x40080400,len:6400
entry 0x400806a8
ets Jun 8 2016 00:22:57

these two commands help me for erase flash. -p with COM4 where ESP32 is connected is required from windows device manager view.
pip install pyserial
python esptool.py -p COM4 erase_flash

after erase of flash following is error. Please advise How it can be fixed to use this eSP32 module. below is continuous error and I was not able to fix it.

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371

First of all, it is not a good practice to high-jack an issue with something unrelated. You should open a new issue if you cannot find an issue that addresses flash read err, 1000

I had the exact same issue today with a cheap Chinese ESP32 Wrover board.

Problem with flash read err, 1000 was related to a power supply issue.

After supplying from a 2.1A USB power supply the error went away and the ESP32 works as expected.
Supplying from USB port of my PC and the error comes back.

Try a big capacitor on GND and +5V pin of the ESP32 modules or look for a powered USB hub that gives enough power on USB.

thank for response please suggest capacitor value. Even I connect new power supply with good reading but I have to upload program which is also not happening

Try 470uF or larger.

What could help as well is to try a different USB cable.

For me 2 out of 5 USB cable have problems to supply the ESP32 when connected to the PC.

If you are on Windows, check the settings for the USB ports. Mine was set to "Allow to shutdown USB device for power saving". Disabling that helped as well.

remarks from are valuable and it looks that it solved the problem.
Sounds like your code upload is failing
See #3036

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

Same thing on me! I was programmed ESP32-CAM in my office with my laptop and I left it while it's properly working. After that, I came home and I started to connect it again. Only one thing happened as extraordinary, I've connected directly +5v and board had been warmed a lot, and then I realized it and I plugged it to 3.3V. After that, I started to get this script on the serial port. Did anyone fix it yet?

rst:0x7 (TG0WDT_SYS_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:0xcf3f00c7,len:496
ho 0 tail 12 room 4
load:0x191c5e11,len:1494867736
ets Jun 8 2016 00:22:57

Same thing on me! I was programmed ESP32-CAM in my office with my laptop and I left it while it's properly working. After that, I came home and I started to connect it again. Only one thing happened as extraordinary, I've connected directly +5v and board had been warmed a lot, and then I realized it and I plugged it to 3.3V. After that, I started to get this script on the serial port. Did anyone fix it yet?

rst:0x7 (TG0WDT_SYS_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:0xcf3f00c7,len:496
ho 0 tail 12 room 4
load:0x191c5e11,len:1494867736
ets Jun 8 2016 00:22:57

Set Partition scheme to Minimal SPIFFS

Same thing on me! I was programmed ESP32-CAM in my office with my laptop and I left it while it's properly working. After that, I came home and I started to connect it again. Only one thing happened as extraordinary, I've connected directly +5v and board had been warmed a lot, and then I realized it and I plugged it to 3.3V. After that, I started to get this script on the serial port. Did anyone fix it yet?
rst:0x7 (TG0WDT_SYS_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:0xcf3f00c7,len:496
ho 0 tail 12 room 4
load:0x191c5e11,len:1494867736
ets Jun 8 2016 00:22:57

Set Partition scheme to Minimal SPIFFS

It seem still same.

Brownout detector was triggered

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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac

It seem still same.
Brownout detector was triggered

And the answer is still the same. Poor power source or bad quality USB cable.

It seem still same.
Brownout detector was triggered

And the answer is still the same. Poor power source or bad quality USB cable.

You are right, thanks. It worked!

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_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:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac

code is getting upoaded but i am getting above error plz if anyone reply it will be helpfull thank you

I had an ESP32cam working for a few days then started getting that message at boot up. Reloaded the program and still no camera.:disappointed:

Error:

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6364
entry 0x400806b8


Brownout detector was triggered

image

Camera label:

HW-297
OV2640

In program:

#define CAMERA_MODEL_AI_THINKER

Board selection:

ESP32 Wrover Module

image


At the time of working

At the time of working

Brownout means not enough power/amperage at peaks. Check that your power
source is sufficient and power/usb cable is good.

Le jeu. 30 janv. 2020 8 h 48 a.m., e-lab innovations <
[email protected]> a écrit :

I had an ESP32cam working for a few days then started getting that message
at boot up. Reloaded the program and still no camera.😞
Error:

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_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:2

load:0x3fff0018,len:4

load:0x3fff001c,len:1216

ho 0 tail 12 room 4

load:0x40078000,len:9720

ho 0 tail 12 room 4

load:0x40080400,len:6364

entry 0x400806b8

Brownout detector was triggered

[image: image]
https://user-images.githubusercontent.com/33958126/73452945-ff8cf180-4390-11ea-9ec9-352af1b4c2b8.png
Camera label:

HW-297
OV2640
In program:

define CAMERA_MODEL_AI_THINKER

Board selection:

ESP32 Wrover Module

[image: image]

https://user-images.githubusercontent.com/33958126/73454449-213ba800-4394-11ea-98f2-808d3d10979c.png

At the time of working

[image: At the time of working]
https://camo.githubusercontent.com/19c1e7fcbe24f25267916194264d4bdcd5b3eaba/68747470733a2f2f646f63732e676f6f676c652e636f6d2f75633f69643d314678705242437061327563774936525762454d616146353247373562576d516a266578706f72743d76696577

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/espressif/arduino-esp32/issues/1638?email_source=notifications&email_token=AHBFDCW6D3Q4YMSFQUX4UH3RALLBBA5CNFSM4FJ4YPZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLBIPI#issuecomment-580260925,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHBFDCR5CPUGJW72J5JHAKDRALLBBANCNFSM4FJ4YPZA
.

thank you

On Thu, Jan 30, 2020 at 8:27 PM Steve Olmstead notifications@github.com
wrote:

Brownout means not enough power/amperage at peaks. Check that your power
source is sufficient and power/usb cable is good.

Le jeu. 30 janv. 2020 8 h 48 a.m., e-lab innovations <
[email protected]> a écrit :

I had an ESP32cam working for a few days then started getting that
message
at boot up. Reloaded the program and still no camera.😞
Error:

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_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:2

load:0x3fff0018,len:4

load:0x3fff001c,len:1216

ho 0 tail 12 room 4

load:0x40078000,len:9720

ho 0 tail 12 room 4

load:0x40080400,len:6364

entry 0x400806b8

Brownout detector was triggered

[image: image]
<
https://user-images.githubusercontent.com/33958126/73452945-ff8cf180-4390-11ea-9ec9-352af1b4c2b8.png

Camera label:

HW-297
OV2640
In program:

define CAMERA_MODEL_AI_THINKER

Board selection:

ESP32 Wrover Module

[image: image]
<
https://user-images.githubusercontent.com/33958126/73454449-213ba800-4394-11ea-98f2-808d3d10979c.png


At the time of working

[image: At the time of working]
<
https://camo.githubusercontent.com/19c1e7fcbe24f25267916194264d4bdcd5b3eaba/68747470733a2f2f646f63732e676f6f676c652e636f6d2f75633f69643d314678705242437061327563774936525762454d616146353247373562576d516a266578706f72743d76696577

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<
https://github.com/espressif/arduino-esp32/issues/1638?email_source=notifications&email_token=AHBFDCW6D3Q4YMSFQUX4UH3RALLBBA5CNFSM4FJ4YPZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLBIPI#issuecomment-580260925
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AHBFDCR5CPUGJW72J5JHAKDRALLBBANCNFSM4FJ4YPZA

.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/espressif/arduino-esp32/issues/1638?email_source=notifications&email_token=AL57RJ2MG2CBMMFWFWX67CLRALTEPA5CNFSM4FJ4YPZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLI3NA#issuecomment-580292020,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AL57RJY6ER3V3RWPYDZVMTDRALTEPANCNFSM4FJ4YPZA
.

change the board to DOIT ESP32 DEVKIT V1. It worked for me for the bluetooth program. Hope this will help some one.

this happened using an i2c sensor and not initializing correctly mysensor.begin();
i copied some code and removed a check for a bad connection.. if (mysensor.begin() == false ){
and by doing so I removed the initialization of the sensor on the bus...

change the board to DOIT ESP32 DEVKIT V1. It worked for me for the bluetooth program. Hope this will help some one.

work for me, thanks. plus i change Wire.begin(12,13); -> Wire.begin(14,15);

rst:0x3 (SW_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:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
ets Jun 8 2016 00:22:57

This error is appearing, even though code gets uploaded on board.

Hi! I have an Adafruit Huzzah feather ESP32 board, it was working for me, and now I'm receiving the following error:

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac

Did you run into similar issue on ESP32-WRROM32D?

The error:

load:0x40080400,len:6364
entry 0x400806b8

Brownout detector was triggered

Is caused by poor power connections on the board.
After spending weeks thinking it was a software issue, I took a tester and started to measure power consumption and voltages on the ESP32-CAM. The ESP32 was plugged in an cheap breadboard with several wires.
The board consumption was around 110-200 mA and I was powering it with 5V on the breadboard with wires to the 5V pin and GND. I did not power the ESP board directly, but the breadboard, with some other pin wire cables to do the connections.
I discover than on the power supply wire I had 5.02V, but on the VCC5V pin of the ESP32 I had 4.42V !!!! Impossible but true.
And while I pushed or moved the ESP board on the breadboard, or moved or pushed power cables on the breadboard, the voltage values changed randomly from 4.02 to 5.02V. Then by chance I got the 5.02V on the ESP32 board, and I re-flashed the firmware, very carefully to not move the contacts, and as of sudden all worked fine without any brownout error.
After some minutes I moved by mistake a power cable, and the board dropped on the table, creating false contacts again, and again I had fluctuating voltages and brownout error at boot, until I was able again to have a more or less correct contact.

LESSON LEARNT: NEVER USE breadboard to power such boards, and use a specific shield with power supply plug, or solder the wires directly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maxpromer picture maxpromer  Â·  3Comments

OAXP picture OAXP  Â·  4Comments

jhowkis picture jhowkis  Â·  3Comments

DrewHoyt picture DrewHoyt  Â·  4Comments

Curclamas picture Curclamas  Â·  4Comments