Problems detecting flash 25SF321B

rtborg
Posts: 71
Joined: Wed Oct 23, 2019 6:15 am

Problems detecting flash 25SF321B

Postby rtborg » Thu Feb 12, 2026 11:05 am

I'm using a custom board with flash 25SF321B and esp32-s3. The chip cannot detect the flash, here's the log:

Code: Select all

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xb (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375de1
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x17f8
load:0x403c9700,len:0xd90
load:0x403cc700,len:0x3044
SHA-256 comparison failed:
Calculated: 951b4103d680057998187487f05648e18c4ac60654bfc0e30fa7a49196771359
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403c9930
I (42) boot: ESP-IDF v5.0.4-265-gf333925342-dirty 2nd stage bootloader
I (43) boot: compile time 09:00:53
I (43) boot: Multicore bootloader
I (46) boot: chip revision: v0.2
I (50) qio_mode: Enabling default flash chip QIO
I (55) boot.esp32s3: Boot SPI Speed : 80MHz
I (60) boot.esp32s3: SPI Mode       : QIO
I (65) boot.esp32s3: SPI Flash Size : 4MB
I (70) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (79) boot: ## Label            Usage          Type ST Offset   Length
I (86) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (93) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (101) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (108) boot:  3 factory          factory app      00 00 00010000 00100000
I (116) boot:  4 ota_0            OTA app          00 10 00110000 00100000
I (124) boot:  5 ota_1            OTA app          00 11 00210000 00100000
I (131) boot:  6 ffat             Unknown data     01 81 00310000 00080000
I (139) boot: End of partition table
I (143) boot: Defaulting to factory image
I (148) esp_image: segment 0: paddr=00010020 vaddr=3c060020 size=1feb4h (130740) map
I (170) esp_image: segment 1: paddr=0002fedc vaddr=3fc98900 size=0013ch (   316) load
I (170) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=57b60h (359264) map
I (212) esp_image: segment 3: paddr=00087b88 vaddr=3fc98a3c size=03144h ( 12612) load
I (214) esp_image: segment 4: paddr=0008acd4 vaddr=40374000 size=148d0h ( 84176) load
I (230) esp_image: segment 5: paddr=0009f5ac vaddr=600fe000 size=0003ch (    60) load
I (239) boot: Loaded app from partition at offset 0x10000
I (239) boot: Disabling RNG early entropy source...
I (250) cpu_start: Multicore app
I (250) cpu_start: Pro cpu up.
I (251) cpu_start: Starting app cpu, entry point is 0x40375860
I (0) cpu_start: App cpu up.
I (269) cpu_start: Pro cpu start user code
I (269) cpu_start: cpu freq: 160000000 Hz
I (269) cpu_start: Application information:
I (272) cpu_start: Project name:     tester
I (276) cpu_start: App version:      1.0.0
I (281) cpu_start: Compile time:     Feb 12 2026 09:00:48
I (287) cpu_start: ELF file SHA256:  083128449c191317...
I (293) cpu_start: ESP-IDF:          v5.0.4-265-gf333925342-dirty
I (300) cpu_start: Min chip rev:     v0.0
I (305) cpu_start: Max chip rev:     v0.99 
I (310) cpu_start: Chip rev:         v0.2
I (314) heap_init: Initializing. RAM available for dynamic allocation:
I (322) heap_init: At 3FCA0840 len 00048ED0 (291 KiB): DRAM
I (328) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (335) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (341) heap_init: At 600FE03C len 00001FAC (7 KiB): RTCRAM
I (348) spi_flash: detected chip: generic
I (352) spi_flash: flash io: qio
E (356) spi_flash: Detected size(0k) smaller than the size in the binary image header(4096k). Probe failed.

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


Backtrace: 0x403765fe:0x3fceb110 0x4037f0c5:0x3fceb130 0x40386416:0x3fceb150 0x42003d9f:0x3fceb270 0x42004014:0x3fceb290 0x40375bf2:0x3fceb2d0 0x403cdb8e:0x3fceb330 0x403cdf95:0x3fceb380 0x403c9999:0x3fceb4b0 0x40045c01:0x3fceb570 |<-CORRUPTED
Is there anything which can be done to fix that? I'm looking for urgent solution as I have a number of PCBs with this particular memory.

Thanks

Who is online

Users browsing this forum: Applebot and 4 guests