technyon / nuki_hub

Use an ESP32 as a Hub between a NUKI Lock and your smarthome.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

S3 Mini Flashing Error using Web Flasher

mutasim opened this issue · comments

I'm unable to boot from my S3 Mini when flashing using the web flasher. The logs show the following:

E (301) 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: 0x4037803a:0x3fceb180 0x403806c1:0x3fceb1a0 0x40386c19:0x3fceb1c0 0x4207b4fa:0x3fceb2f0 0x403779ab:0x3fceb320 0x403cd83b:0x3fceb350 0x403cdafa:0x3fceb380 0x403c9925:0x3fceb4b0 0x40045c01:0x3fceb570 |<-CORRUPTED




ELF file SHA256: 76d60dae6f83b890

E (329) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40377c48
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
entry 0x403c98d0
E (301) 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: 0x4037803a:0x3fceb180 0x403806c1:0x3fceb1a0 0x40386c19:0x3fceb1c0 0x4207b4fa:0x3fceb2f0 0x403779ab:0x3fceb320 0x403cd83b:0x3fceb350 0x403cdafa:0x3fceb380 0x403c9925:0x3fceb4b0 0x40045c01:0x3fceb570 |<-CORRUPTED




ELF file SHA256: 76d60dae6f83b890

I have tried flashing twice, still no luck. Shall I tried the other flashing method?

You posted the problem:

E (301) spi_flash: Detected size(4096k) smaller than the size in the binary image header(8192k). Probe failed.

The ESP you bought has 4MB of Flash, but 8MB are required.

Ah ok, thanks - any suggestions on a reliable ESP model?

commented

4MB ESP32(-S3) should work fine. This is probably a bug in the way the webflash binary is created. It currently works on 8MB devices but not on 4MB devices. 8MB is not necessary though.

Flashing using the release binaries should work just fine (with esptools).

Will take a look at the webflash creation to fix the underlying issue with 4MB S3 devices.

This seems like a duplicate of #397 by the way.

commented

Note that the release binaries might not work as well.
Bootloader probably needs to be built with flash size set to 4MB.
So this might need new binaries (for both webflash and manual flash) after all

Amazing - that worked. Thanks!! 👍