yoursunny / esp32cam

OV2640 camera on ESP32-CAM, Arduino library
https://esp32cam.yoursunny.dev
ISC License
499 stars 174 forks source link

Issues with Async camera example #57

Closed DarkFighterLuke closed 3 months ago

DarkFighterLuke commented 3 months ago

Hi, this is a nice library, but i am randomly (but very frequently) facing a problem with the async camera example. It was working the first time I tried, now after a second or two I get a kernel panic and the esp reboots:

Guru Meditation Error: Core  0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x4014aa08: 0a013300 72710001 02ab0969
Core  0 register dump:
PC      : 0x4014aa0d  PS      : 0x00060c30  A0      : 0xc011adcc  A1      : 0x3ffd0160  
A2      : 0x3ffc0768  A3      : 0x00000000  A4      : 0x00000001  A5      : 0x00000001  
A6      : 0x00000000  A7      : 0x00000000  A8      : 0x8014a9f9  A9      : 0x3ffd0140  
A10     : 0x0000005f  A11     : 0x00000302  A12     : 0x3ffc91c4  A13     : 0x3ffc6c4c  
A14     : 0x00000000  A15     : 0x3ffc6c4c  SAR     : 0x00000007  EXCCAUSE: 0x00000000  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  

Backtrace: 0x4014aa0a:0x3ffd0160 0x4011adc9:0x3ffd01c0 0x4014adc3:0x3ffd0210 0x40148166:0x3ffd0230 0x40148be6:0x3ffd0250 0x401133ea:0x3ffd0280 0x4011346d:0x3ffd02b0 0x4012b5a2:0x3ffd02d0 0x4012bd81:0x3ffd02f0 0x4012a3a4:0x3ffd0310 0x4016121d:0x3ffd0330

  #0  0x4014aa0a:0x3ffd0160 in ram_tx_pwr_backoff at /home/cff/gittree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7_cal.c:1366
  #1  0x4011adc9:0x3ffd01c0 in ecp_normalize_jac_many at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/mbedtls/mbedtls/library/ecp.c:1440 (discriminator 2)
  #2  0x4014adc3:0x3ffd0210 in tx_pwctrl_init at /home/cff/gittree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7_cal.c:2164
  #3  0x40148166:0x3ffd0230 in bb_init at /home/cff/gittree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7.c:2776
  #4  0x40148be6:0x3ffd0250 in register_chipv7_phy at /home/cff/gittree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7.c:3782
  #5  0x401133ea:0x3ffd0280 in esp_phy_load_cal_and_init at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_phy/src/phy_init.c:727 (discriminator 2)
  #6  0x4011346d:0x3ffd02b0 in esp_phy_enable at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_phy/src/phy_init.c:241
  #7  0x4012b5a2:0x3ffd02d0 in wifi_hw_start at ??:?
  #8  0x4012bd81:0x3ffd02f0 in wifi_start_process at ??:?
  #9  0x4012a3a4:0x3ffd0310 in ieee80211_ioctl_process at ??:?
  #10 0x4016121d:0x3ffd0330 in ppTask at ??:?

ELF file SHA256: b287c8dd1db0be0e

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x12 (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:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4

Do you have an idea of the reason?

Thanks.

DarkFighterLuke commented 3 months ago

It seemed a power issue, replacing two wires solved the issue.