geeksville / TenDollarWebcam

A small example app for ESP32 + Micro-RTSP
MIT License
389 stars 59 forks source link

Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. #13

Open olskar opened 5 years ago

olskar commented 5 years ago

Flashed, and when I boot I see this over seral, any ideas why?

[21:55:15]ets Jun 8 2016 00:22:57 [21:55:15] [21:55:15]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) [21:55:15]configsip: 0, SPIWP:0xee [21:55:15]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 [21:55:15]mode:DIO, clock div:2 [21:55:15]load:0x3fff0018,len:4 [21:55:15]load:0x3fff001c,len:1100 [21:55:15]load:0x40078000,len:9232 [21:55:15]load:0x40080400,len:6412 [21:55:15]entry 0x400806a8 [21:55:17]Camera init returned 0 [21:55:17][E][Preferences.cpp:437] getString(): nvs_get_str len fail: ssid NOT_FOUND [21:55:17][E][Preferences.cpp:437] getString(): nvs_get_str len fail: password NOT_FOUND [21:55:17]Starting SmartConfig. [21:55:17]Waiting for SmartConfig. [21:55:22].........Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. [21:55:22]Core 0 register dump: [21:55:22]PC : 0x400dd2d7 PS : 0x00060e30 A0 : 0x8012e5fc A1 : 0x3ffe2680
[21:55:22]A2 : 0x3f800c9c A3 : 0x00000001 A4 : 0x3ffbfd9c A5 : 0x3ffc8e38
[21:55:22]A6 : 0x3ffc8e34 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffe2670
[21:55:22]A10 : 0x3f800c9c A11 : 0x3ffbec92 A12 : 0x00000006 A13 : 0x3f800ca2
[21:55:22]A14 : 0x0000ffff A15 : 0x00000000 SAR : 0x00000004 EXCCAUSE: 0x0000001c
[21:55:22]EXCVADDR: 0x0000002c LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
[21:55:22] [21:55:22]Backtrace: 0x400dd2d7:0x3ffe2680 0x4012e5f9:0x3ffe26d0 0x4012e864:0x3ffe2720 0x4012e87b:0x3ffe2760 0x401314c8:0x3ffe2780 0x401315f2:0x3ffe27a0 0x40094908:0x3ffe27c0 0x4008d7c1:0x3ffe2800 [21:55:22] [21:55:22]Rebooting...

stephen-standridge commented 4 years ago

I ran into this and it had to do with my FIDI serial connector being set to 3v and plugged into the esp32's 3v. Aparently, the wifi initialization will sometimes spike the power and causes a brownout, which leads to this error.

I switched the FIDI connector to 5v and connected it to the esp32's 5v and it worked.

ristomatti commented 4 years ago

@stephen-standridge I would not suggest switching the FTDI adapter to 5V as I've understood it also changes the logic level voltage to 5V which is not suitable for ESP32 even though it might survive. In general FTDI adapters are not recommended as power sources for ESP's as the voltage regulator is not beefy enough. Instead an external power supply is recommended whether it's 3.3V to 3.3V pin or 5V to 5V pin.

spattinson commented 4 years ago

I soldered an additional wire on to ftdi directly to 5v usb and use that to power esp32 cam. Logic level still set to 3.3v.

ristomatti commented 4 years ago

@spattinson Great tip! I assume the 5V pin on the FTDI comes directly from the USB and the problem with lackluster regulator affects only the 3.3V pin.

vks007 commented 1 year ago

I solved this error by passing in the right camera model config. The documentation misses to specify a necessary step to make the code work which is to choose the right camera config. I am using a AI Thinker camera so I had to change the following line in the file ESP32-devcam.ino cam.init(esp32cam_aithinker_config);

You can find all the config defined in the file : OV2640.cpp