lewisxhe / esp32-camera-screen

TTGO T-camera Plus
https://ru.aliexpress.com/item/TTGO-T-camera-Plus-ESP32-DOWDQ6-8-MB-SPRAM-OV2640-1-3/32971057846.html?fbclid=IwAR1uUoWC-UiemD8rKwg15WvpM7zhtvxUxdZhh0jnbrkFkNah6MV6Stg5Kag
65 stars 52 forks source link

wifi crash with ttgo t-camera plus, ESP_ERR_NO_MEM? #18

Open maceip opened 3 years ago

maceip commented 3 years ago

followed the directions here: https://github.com/Xinyuan-LilyGO/esp32-camera-screen/commit/66c7f1141e5429130f4ad21cf5f2ac6a41711aa4

and the device crashes and reboots in app_wifi.c. ESP_ERROR_CHECK(esp_wifi_init(&cfg)); throws an ESP_ERR_NO_MEM error. How is it out of memory already?

LD build/ttgo_camera_plus.elf
esptool.py v3.1-dev
Merged 1 ELF section
Flashing binaries to serial port '/dev/cu.usbserial-02249115' (app at offset 0x10000)...
esptool.py v3.1-dev
Serial port /dev/cu.usbserial-02249115
Connecting.....
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:0a:c4:fa:19:34
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x0013cfff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 26576 bytes to 16405...
Wrote 26576 bytes (16405 compressed) at 0x00001000 in 0.7 seconds (effective 325.1 kbit/s)...
Hash of data verified.
Compressed 1230640 bytes to 747142...
Wrote 1230640 bytes (747142 compressed) at 0x00010000 in 11.7 seconds (effective 840.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 411.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
MONITOR
--- idf_monitor on /dev/cu.usbserial-02249115 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jul 29 2019 12:21:46

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:0x3fff0030,len:7140
load:0x40078000,len:14952
load:0x40080400,len:4400
entry 0x40080690
I (27) boot: ESP-IDF v4.3 2nd stage bootloader
I (27) boot: compile time 14:22:14
I (27) boot: chip revision: 3
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (37) qio_mode: Enabling default flash chip QIO
I (42) boot.esp32: SPI Speed      : 80MHz
I (47) boot.esp32: SPI Mode       : QIO
I (51) boot.esp32: SPI Flash Size : 4MB
I (56) boot: Enabling RNG early entropy source...
I (61) boot: Partition Table:
I (65) boot: ## Label            Usage          Type ST Offset   Length
I (72) boot:  0 factory          factory app      00 00 00010000 00300000
I (80) boot:  1 nvs              WiFi data        01 02 00310000 00004000
I (87) boot:  2 fr               unknown          20 20 00320000 00020000
I (95) boot: End of partition table
I (99) boot_comm: chip revision: 3, min. application chip revision: 0
I (106) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=5d980h (383360) map
I (226) esp_image: segment 1: paddr=0006d9a8 vaddr=3ffb0000 size=02670h (  9840) load
I (229) esp_image: segment 2: paddr=00070020 vaddr=400d0020 size=ab880h (702592) map
I (436) esp_image: segment 3: paddr=0011b8a8 vaddr=3ffb2670 size=0333ch ( 13116) load
I (441) esp_image: segment 4: paddr=0011ebec vaddr=40080000 size=1db08h (121608) load
I (483) esp_image: segment 5: paddr=0013c6fc vaddr=50000000 size=00010h (    16) load
I (500) boot: Loaded app from partition at offset 0x10000
I (500) boot: Disabling RNG early entropy source...
I (512) psram: This chip is ESP32-D0WD
I (512) spiram: Found 64MBit SPI RAM device
I (512) spiram: SPI RAM mode: flash 80m sram 80m
I (517) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (524) cpu_start: Pro cpu up.
I (528) cpu_start: Starting app cpu, entry point is 0x40081700
0x40081700: call_start_cpu1 at /Users/r/esp/esp-idf/components/esp_system/port/cpu_start.c:141

I (0) cpu_start: App cpu up.
I (1028) spiram: SPI SRAM memory test OK
I (1036) cpu_start: Pro cpu start user code
I (1036) cpu_start: cpu freq: 240000000
I (1036) cpu_start: Application information:
I (1039) cpu_start: Project name:     ttgo_camera_plus
I (1044) cpu_start: App version:      66c7f11-dirty
I (1050) cpu_start: Compile time:     Jun 29 2021 14:22:27
I (1056) cpu_start: ELF file SHA256:  a78fad50fe762db6...
I (1062) cpu_start: ESP-IDF:          v4.3
I (1067) heap_init: Initializing. RAM available for dynamic allocation:
I (1074) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1081) heap_init: At 3FFC7A10 len 000185F0 (97 KiB): DRAM
I (1087) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1093) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1100) heap_init: At 4009DB08 len 000024F8 (9 KiB): IRAM
I (1106) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1114) spi_flash: detected chip: generic
I (1119) spi_flash: flash io: qio
I (1123) sleep: Configure to isolate all GPIO pins in sleep state
I (1130) sleep: Enable automatic switching of GPIO sleep configuration
I (1137) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1152) esp-eye: Version 0.9.0
E (1156) vfs_fat_sdmmc: slot init failed (0x103).
E (1161) [SD]: Failed to initialize the card (ESP_ERR_INVALID_STATE). Make sure SD card lines have pull-up resistors in place.
I (1173) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1182) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1192) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1201) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1210) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1220) gpio: GPIO[27]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1229) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1238) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1248) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1257) gpio: GPIO[37]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1267) gpio: GPIO[38]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1276) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1285) sccb: pin_sda 18 pin_scl 23

I (1407) camera: Detected OV2640 camera
I (1408) camera: Allocating 2 frame buffers (30 KB total)
I (1408) camera: Allocating 15 KB frame buffer in OnBoard RAM
I (1413) camera: Allocating 15 KB frame buffer in OnBoard RAM
I (1563) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
wake word number = 1, word1 name = nihaotianmao
I (7988) I2S: DMA Malloc info, datalen=blocksize=2400, dma_buf_count=3
wake word number = 1, word1 name = nihaotianmao
I (7988) I2S: PLL_D2: Req RATE: 16000, real rate: 16025.000, BITS: 32, CLKM: 39, BCK: 4, MCLK: 4096000.000, SCLK: 1025600.000000, diva: 64, divb: 4
W (7993) I2S: I2S driver already installed
nihaotianmao DETECTED.
I (14334) app_wifi: ESP_WIFI_MODE_AP
I (14339) wifi:wifi driver task: 3fff2eec, prio:23, stack:6656, core=0
I (14339) system_api: Base MAC address is not set
I (14341) system_api: read default base MAC address from EFUSE
I (14349) wifi:wifi firmware version: c7d0450
I (14352) wifi:wifi certification version: v7.0
I (14356) wifi:config NVS flash: enabled
I (14360) wifi:config nano formating: disabled
I (14364) wifi:Init data frame dynamic rx buffer num: 32
I (14369) wifi:Init management frame dynamic rx buffer num: 32
I (14374) wifi:Init management short buffer num: 32
I (14379) wifi:Init dynamic tx buffer num: 32
W (14384) wifi:esf_buf_setup_static: alloc eb fail(9)
I (14388) wifi:Deinit lldesc rx mblock:0
I (14391) wifi:Deinit lldesc rx mblock:0
I (14395) wifi:Deinit lldesc rx mblock:0
I (14401) wifi_init: rx ba win: 6
I (14403) wifi_init: tcpip mbox: 32
I (14407) wifi_init: udp mbox: 6
I (14411) wifi_init: tcp mbox: 6
I (14415) wifi_init: tcp tx win: 5744
I (14419) wifi_init: tcp rx win: 5744
I (14423) wifi_init: tcp mss: 1436
I (14427) wifi_init: WiFi IRAM OP enabled
I (14432) wifi_init: WiFi RX IRAM OP enabled
ESP_ERROR_CHECK failed: esp_err_t 0x101 (ESP_ERR_NO_MEM) at 0x40107e25
0x40107e25: _esp_error_check_failed at /Users/r/esp/esp-idf/components/esp_common/src/esp_err.c:41

file: "/Users/r/esp-who/examples/single_chip/esp32-camera-screen/main/app_wifi.c" line 96
func: wifi_init_softap
expression: esp_wifi_init(&cfg)

abort() was called at PC 0x40107e2b on core 0
0x40107e2b: _esp_error_check_failed at /Users/r/esp/esp-idf/components/esp_common/src/esp_err.c:42

Backtrace:0x4008f296:0x3ffca780 0x4008faa1:0x3ffca7a0 0x4009782e:0x3ffca7c0 0x40107e2b:0x3ffca830 0x400d444e:0x3ffca850 0x400d462b:0x3ffcaa30 0x400d386a:0x3ffcaa50 0x4017b577:0x3ffcab90 0x40093169:0x3ffcabb0
0x4008f296: panic_abort at /Users/r/esp/esp-idf/components/esp_system/panic.c:356

0x4008faa1: esp_system_abort at /Users/r/esp/esp-idf/components/esp_system/system_api.c:112

0x4009782e: abort at /Users/r/esp/esp-idf/components/newlib/abort.c:46

0x40107e2b: _esp_error_check_failed at /Users/r/esp/esp-idf/components/esp_common/src/esp_err.c:42

0x400d444e: wifi_init_softap at /Users/r/esp-who/examples/single_chip/esp32-camera-screen/main/app_wifi.c:96 (discriminator 1)

0x400d462b: app_wifi_init at /Users/r/esp-who/examples/single_chip/esp32-camera-screen/main/app_wifi.c:160 (discriminator 13)

0x400d386a: app_main at /Users/r/esp-who/examples/single_chip/esp32-camera-screen/main/app_main.cpp:682

0x4017b577: main_task at /Users/r/esp/esp-idf/components/freertos/port/port_common.c:133

0x40093169: vPortTaskWrapper at /Users/r/esp/esp-idf/components/freertos/port/xtensa/port.c:168

ELF file SHA256: a78fad50fe762db6

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

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:0x3fff0030,len:7140
load:0x40078000,len:14952
load:0x40080400,len:4400
entry 0x40080690
I (27) boot: ESP-IDF v4.3 2nd stage bootloader
I (27) boot: compile time 14:22:14
I (27) boot: chip revision: 3
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (37) qio_mode: Enabling default flash chip QIO
I (42) boot.esp32: SPI Speed      : 80MHz
I (47) boot.esp32: SPI Mode       : QIO
I (51) boot.esp32: SPI Flash Size : 4MB
I (56) boot: Enabling RNG early entropy source...
I (61) boot: Partition Table:
I (65) boot: ## Label            Usage          Type ST Offset   Length
I (72) boot:  0 factory          factory app      00 00 00010000 00300000
I (80) boot:  1 nvs              WiFi data        01 02 00310000 00004000
I (87) boot:  2 fr               unknown          20 20 00320000 00020000
I (95) boot: End of partition table
I (99) boot_comm: chip revision: 3, min. application chip revision: 0
I (106) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=5d980h (383360) map
I (226) esp_image: segment 1: paddr=0006d9a8 vaddr=3ffb0000 size=02670h (  9840) load
I (229) esp_image: segment 2: paddr=00070020 vaddr=400d0020 size=ab880h (702592) map
I (436) esp_image: segment 3: paddr=0011b8a8 vaddr=3ffb2670 size=0333ch ( 13116) load
I (440) esp_image: segment 4: paddr=0011ebec vaddr=40080000 size=1db08h (121608) load
I (483) esp_image: segment 5: paddr=0013c6fc vaddr=50000000 size=00010h (    16) load
I (500) boot: Loaded app from partition at offset 0x10000
I (500) boot: Disabling RNG early entropy source...
I (511) psram: This chip is ESP32-D0WD
I (512) spiram: Found 64MBit SPI RAM device
I (512) spiram: SPI RAM mode: flash 80m sram 80m
I (517) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (524) cpu_start: Pro cpu up.
I (528) cpu_start: Starting app cpu, entry point is 0x40081700
0x40081700: call_start_cpu1 at /Users/r/esp/esp-idf/components/esp_system/port/cpu_start.c:141

I (521) cpu_start: App cpu up.
I (1028) spiram: SPI SRAM memory test OK
I (1035) cpu_start: Pro cpu start user code
I (1035) cpu_start: cpu freq: 240000000
I (1035) cpu_start: Application information:
I (1038) cpu_start: Project name:     ttgo_camera_plus
I (1044) cpu_start: App version:      66c7f11-dirty
I (1050) cpu_start: Compile time:     Jun 29 2021 14:22:27
I (1056) cpu_start: ELF file SHA256:  a78fad50fe762db6...
I (1062) cpu_start: ESP-IDF:          v4.3
I (1067) heap_init: Initializing. RAM available for dynamic allocation:
I (1074) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1080) heap_init: At 3FFC7A10 len 000185F0 (97 KiB): DRAM
I (1087) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1093) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1100) heap_init: At 4009DB08 len 000024F8 (9 KiB): IRAM
I (1106) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1114) spi_flash: detected chip: generic
I (1118) spi_flash: flash io: qio
I (1123) sleep: Configure to isolate all GPIO pins in sleep state
I (1129) sleep: Enable automatic switching of GPIO sleep configuration
I (1137) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1152) esp-eye: Version 0.9.0
E (1156) vfs_fat_sdmmc: slot init failed (0x103).
E (1161) [SD]: Failed to initialize the card (ESP_ERR_INVALID_STATE). Make sure SD card lines have pull-up resistors in place.
I (1173) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1182) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1192) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1201) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1210) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1220) gpio: GPIO[27]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1229) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1238) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1248) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1257) gpio: GPIO[37]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1267) gpio: GPIO[38]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1276) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1285) sccb: pin_sda 18 pin_scl 23

I (1407) camera: Detected OV2640 camera
I (1408) camera: Allocating 2 frame buffers (30 KB total)
I (1408) camera: Allocating 15 KB frame buffer in OnBoard RAM
I (1413) camera: Allocating 15 KB frame buffer in OnBoard RAM
I (1563) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
wake word number = 1, word1 name = nihaotianmao
I (7988) I2S: DMA Malloc info, datalen=blocksize=2400, dma_buf_count=3
wake word number = 1, word1 name = nihaotianmao
I (7988) I2S: PLL_D2: Req RATE: 16000, real rate: 16025.000, BITS: 32, CLKM: 39, BCK: 4, MCLK: 4096000.000, SCLK: 1025600.000000, diva: 64, divb: 4
W (7993) I2S: I2S driver already installed
nihaotianmao DETECTED.
I (50074) app_wifi: ESP_WIFI_MODE_AP
I (50079) wifi:wifi driver task: 3fff2f78, prio:23, stack:6656, core=0
I (50079) system_api: Base MAC address is not set
I (50081) system_api: read default base MAC address from EFUSE
I (50090) wifi:wifi firmware version: c7d0450
I (50092) wifi:wifi certification version: v7.0
I (50096) wifi:config NVS flash: enabled
I (50100) wifi:config nano formating: disabled
I (50104) wifi:Init data frame dynamic rx buffer num: 32
I (50109) wifi:Init management frame dynamic rx buffer num: 32
I (50114) wifi:Init management short buffer num: 32
I (50119) wifi:Init dynamic tx buffer num: 32
W (50124) wifi:esf_buf_setup_static: alloc eb fail(9)
I (50128) wifi:Deinit lldesc rx mblock:0
I (50132) wifi:Deinit lldesc rx mblock:0
I (50135) wifi:Deinit lldesc rx mblock:0
I (50141) wifi_init: rx ba win: 6
I (50143) wifi_init: tcpip mbox: 32
I (50147) wifi_init: udp mbox: 6
I (50151) wifi_init: tcp mbox: 6
I (50155) wifi_init: tcp tx win: 5744
I (50159) wifi_init: tcp rx win: 5744
I (50163) wifi_init: tcp mss: 1436
I (50168) wifi_init: WiFi IRAM OP enabled
I (50172) wifi_init: WiFi RX IRAM OP enabled
ESP_ERROR_CHECK failed: esp_err_t 0x101 (ESP_ERR_NO_MEM) at 0x40107e25
0x40107e25: _esp_error_check_failed at /Users/r/esp/esp-idf/components/esp_common/src/esp_err.c:41

file: "/Users/r/esp-who/examples/single_chip/esp32-camera-screen/main/app_wifi.c" line 96
func: wifi_init_softap
expression: esp_wifi_init(&cfg)

abort() was called at PC 0x40107e2b on core 0
0x40107e2b: _esp_error_check_failed at /Users/r/esp/esp-idf/components/esp_common/src/esp_err.c:42

Backtrace:0x4008f296:0x3ffca780 0x4008faa1:0x3ffca7a0 0x4009782e:0x3ffca7c0 0x40107e2b:0x3ffca830 0x400d444e:0x3ffca850 0x400d462b:0x3ffcaa30 0x400d386a:0x3ffcaa50 0x4017b577:0x3ffcab90 0x40093169:0x3ffcabb0
0x4008f296: panic_abort at /Users/r/esp/esp-idf/components/esp_system/panic.c:356

0x4008faa1: esp_system_abort at /Users/r/esp/esp-idf/components/esp_system/system_api.c:112

0x4009782e: abort at /Users/r/esp/esp-idf/components/newlib/abort.c:46

0x40107e2b: _esp_error_check_failed at /Users/r/esp/esp-idf/components/esp_common/src/esp_err.c:42

0x400d444e: wifi_init_softap at /Users/r/esp-who/examples/single_chip/esp32-camera-screen/main/app_wifi.c:96 (discriminator 1)

0x400d462b: app_wifi_init at /Users/r/esp-who/examples/single_chip/esp32-camera-screen/main/app_wifi.c:160 (discriminator 13)

0x400d386a: app_main at /Users/r/esp-who/examples/single_chip/esp32-camera-screen/main/app_main.cpp:682

0x4017b577: main_task at /Users/r/esp/esp-idf/components/freertos/port/port_common.c:133

0x40093169: vPortTaskWrapper at /Users/r/esp/esp-idf/components/freertos/port/xtensa/port.c:168

ELF file SHA256: a78fad50fe762db6

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

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:0x3fff0030,len:7140
load:0x40078000,len:14952
load:0x40080400,len:4400
entry 0x40080690
I (27) boot: ESP-IDF v4.3 2nd stage bootloader
I (27) boot: compile time 14:22:14
I (27) boot: chip revision: 3
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (37) qio_mode: Enabling default flash chip QIO
I (42) boot.esp32: SPI Speed      : 80MHz
I (47) boot.esp32: SPI Mode       : QIO
I (51) boot.esp32: SPI Flash Size : 4MB
I (56) boot: Enabling RNG early entropy source...
I (61) boot: Partition Table:
I (65) boot: ## Label            Usage          Type ST Offset   Length
I (72) boot:  0 factory          factory app      00 00 00010000 00300000
I (80) boot:  1 nvs              WiFi data        01 02 00310000 00004000
I (87) boot:  2 fr               unknown          20 20 00320000 00020000
I (95) boot: End of partition table
I (99) boot_comm: chip revision: 3, min. application chip revision: 0
I (106) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=5d980h (383360) map
I (226) esp_image: segment 1: paddr=0006d9a8 vaddr=3ffb0000 size=02670h (  9840) load
I (229) esp_image: segment 2: paddr=00070020 vaddr=400d0020 size=ab880h (702592) map
I (436) esp_image: segment 3: paddr=0011b8a8 vaddr=3ffb2670 size=0333ch ( 13116) load
I (440) esp_image: segment 4: paddr=0011ebec vaddr=40080000 size=1db08h (121608) load
I (483) esp_image: segment 5: paddr=0013c6fc vaddr=50000000 size=00010h (    16) load
I (500) boot: Loaded app from partition at offset 0x10000
I (500) boot: Disabling RNG early entropy source...
I (511) psram: This chip is ESP32-D0WD
I (512) spiram: Found 64MBit SPI RAM device
I (512) spiram: SPI RAM mode: flash 80m sram 80m
I (517) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (524) cpu_start: Pro cpu up.
I (528) cpu_start: Starting app cpu, entry point is 0x40081700
0x40081700: call_start_cpu1 at /Users/r/esp/esp-idf/components/esp_system/port/cpu_start.c:141

I (521) cpu_start: App cpu up.
I (1028) spiram: SPI SRAM memory test OK
I (1035) cpu_start: Pro cpu start user code
I (1035) cpu_start: cpu freq: 240000000
I (1035) cpu_start: Application information:
I (1039) cpu_start: Project name:     ttgo_camera_plus
I (1044) cpu_start: App version:      66c7f11-dirty
I (1050) cpu_start: Compile time:     Jun 29 2021 14:22:27
I (1056) cpu_start: ELF file SHA256:  a78fad50fe762db6...
I (1062) cpu_start: ESP-IDF:          v4.3
I (1067) heap_init: Initializing. RAM available for dynamic allocation:
I (1074) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1080) heap_init: At 3FFC7A10 len 000185F0 (97 KiB): DRAM
I (1087) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1093) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1100) heap_init: At 4009DB08 len 000024F8 (9 KiB): IRAM
I (1106) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1114) spi_flash: detected chip: generic
I (1118) spi_flash: flash io: qio
I (1123) sleep: Configure to isolate all GPIO pins in sleep state
I (1129) sleep: Enable automatic switching of GPIO sleep configuration
I (1137) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1152) esp-eye: Version 0.9.0
E (1156) vfs_fat_sdmmc: slot init failed (0x103).
E (1161) [SD]: Failed to initialize the card (ESP_ERR_INVALID_STATE). Make sure SD card lines have pull-up resistors in place.
I (1173) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1182) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1192) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1201) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1210) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1220) gpio: GPIO[27]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1229) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1238) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1248) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1257) gpio: GPIO[37]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1267) gpio: GPIO[38]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1276) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1285) sccb: pin_sda 18 pin_scl 23

I (1407) camera: Detected OV2640 camera
I (1408) camera: Allocating 2 frame buffers (30 KB total)
I (1408) camera: Allocating 15 KB frame buffer in OnBoard RAM
I (1413) camera: Allocating 15 KB frame buffer in OnBoard RAM
I (1563) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
wake word number = 1, word1 name = nihaotianmao
I (7988) I2S: DMA Malloc info, datalen=blocksize=2400, dma_buf_count=3
wake word number = 1, word1 name = nihaotianmao
I (7988) I2S: PLL_D2: Req RATE: 16000, real rate: 16025.000, BITS: 32, CLKM: 39, BCK: 4, MCLK: 4096000.000, SCLK: 1025600.000000, diva: 64, divb: 4
W (7993) I2S: I2S driver already installed
maceip commented 3 years ago

this crash was fixed by turning on:

CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y

Things that work: mic works, camera works (sometimes colors are inverted?), wifi ap works However, it still randomly crashes (or screen turns off), with no logs in monitor