esp32-camera运行实例程序报PSRAM ID错误
Posted: Sun Apr 25, 2021 3:50 am
硬件平台:devkitc-v2
开发环境:esp-idf vscode插件
根据readme文件,从github克隆仓库后,把esp32-camera添加到component中。并且通过idf.py menuconfig 打开了CONFIG_ESP32_SPIRAM_SUPPORT选项。此时编译烧录正常,但运行时,通过idf.py monitor,观察到以下错误,并不断重启。
全部log见下:
开发环境:esp-idf vscode插件
根据readme文件,从github克隆仓库后,把esp32-camera添加到component中。并且通过idf.py menuconfig 打开了CONFIG_ESP32_SPIRAM_SUPPORT选项。此时编译烧录正常,但运行时,通过idf.py monitor,观察到以下错误,并不断重启。
Code: Select all
E (264) psram: PSRAM ID read error: 0xffffffff
E (268) cpu_start: Failed to init external RAM!
Re-enable cpu cache.
Code: Select all
I (29) boot: ESP-IDF v4.2-dirty 2nd stage bootloader
I (29) boot: compile time 17:36:54
I (29) boot: chip revision: 1
I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (40) boot.esp32: SPI Speed : 40MHz
I (44) boot.esp32: SPI Mode : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (77) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (84) boot: 2 factory factory app 00 00 00010000 00100000
I (92) boot: End of partition table
I (96) boot_comm: chip revision: 1, min. application chip revision: 0
I (103) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0db80 ( 56192) map
I (136) esp_image: segment 1: paddr=0x0001dba8 vaddr=0x3ffb0000 size=0x02470 ( 9328) load
I (140) esp_image: segment 2: paddr=0x00020020 vaddr=0x400d0020 size=0x2306c (143468) map
0x400d0020: _stext at ??:?
I (202) esp_image: segment 3: paddr=0x00043094 vaddr=0x3ffb2470 size=0x00e0c ( 3596) load
I (204) esp_image: segment 4: paddr=0x00043ea8 vaddr=0x40080000 size=0x00404 ( 1028) load
0x40080000: _WindowOverflow4 at F:/esp-iot-solution/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730
I (209) esp_image: segment 5: paddr=0x000442b4 vaddr=0x40080404 size=0x0fcac ( 64684) load
I (258) boot: Loaded app from partition at offset 0x10000
I (258) boot: Disabling RNG early entropy source...
I (258) psram: This chip is ESP32-D0WD
E (264) psram: PSRAM ID read error: 0xffffffff
E (268) cpu_start: Failed to init external RAM!
Re-enable cpu cache.
abort() was called at PC 0x40081bed on core 0
0x40081bed: call_start_cpu0 at F:/esp-iot-solution/esp-idf/components/esp32/cpu_start.c:191 (discriminator 1)
Backtrace:0x4008974a:0x3ffe3b90 0x40089e09:0x3ffe3bb0 0x4008d736:0x3ffe3bd0 0x40081bed:0x3ffe3c40 0x40079082:0x3ffe3c80 |<-CORRUPTED
0x4008974a: panic_abort at F:/esp-iot-solution/esp-idf/components/esp_system/panic.c:330
0x40089e09: esp_system_abort at F:/esp-iot-solution/esp-idf/components/esp_system/system_api.c:106
0x4008d736: abort at F:/esp-iot-solution/esp-idf/components/newlib/abort.c:46
0x40081bed: call_start_cpu0 at F:/esp-iot-solution/esp-idf/components/esp32/cpu_start.c:191 (discriminator 1)
ELF file SHA256: 8cbbc2502a475ea7
Rebooting...