如何修复 ESP32 E (81) spi_flash: Detected size(4096k) smaller than the size in the binary image header(8192k). Probe failed.

问题

你的 ESP32 板反复重启并显示类似以下错误消息

esp32_boot_log.txt

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x40376c68
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
E (81) spi_flash: Detected size(4096k) smaller than the size in the binary image header(8192k). Probe failed.

assert failed: do_core_init startup.c:328 (flash_ret == ESP_OK)


Backtrace: 0x4037705a:0x3fceb180 0x4037a395:0x3fceb1a0 0x4037fb8d:0x3fceb1c0 0x4200a3aa:0x3fceb2f0 0x403769cb:0x3fceb320 0x403cd86b:0x3fceb350 0x403cdb2a:0x3fceb380 0x403c9925:0x3fceb4b0 0x40045c01:0x3fceb570 0x40043ab6:0x3fceb6f0 0x40034c45:0x3fceb710




ELF file SHA256: fda71b8413cb6eda

E (111) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...

解决方案

此错误发生是因为你试图将针对 8MB 闪存大小构建的二进制镜像烧录到具有 4MB 闪存大小的板上。ESP32 板无法检测到正确的闪存大小,因此无法启动。

你需要修改构建配置以构建 4MB 模块,然后重新构建并重新烧录以修复问题。


Check out similar posts by category: ESP32