Skip to content

XMC flash chip boot-up failure detected, claims to fix but does not do so (ESPTOOL-1393) #1189

Description

@snuq

Operating System

Kubuntu 26.04

Esptool Version

5.4.0

Python Version

3.14

Chip Description

ESP32-S3 (QFN56) (revision v0.2)

Device Description

ESP32-S3-N16R8 Development Board CORE Board Type-C
Purchased from AliExpress: https://www.aliexpress.us/item/3256808865544909.html

Hardware Configuration

Nothing attached yet

How is Esptool Run

No IDE, Linux terminal

Full Esptool Command Line that Was Run

esptool --no-stub --baud 460800 write-flash --flash-mode dio 0 ESP32_GENERIC_S3-20260824-v1.29.0.bin

Esptool Output

esptool v5.4.0
Connected to ESP32-S3 on /dev/ttyACM0:
Chip type:          ESP32-S3 (QFN56) (revision v0.2)
Features:           Wi-Fi, BT 5 (LE), Dual Core + LP Core, 240MHz, Embedded PSRAM 8MB (AP_3v3)
Crystal frequency:  40MHz
USB mode:           USB-Serial/JTAG
MAC:                44:bd:8d:6a:c1:8c

Changing baud rate to 460800...
Changed.

Enabling default SPI flash mode...
WARNING: XMC flash chip boot-up failure detected! Running XMC25QHxxC startup flow.
WARNING: XMC flash boot-up fix failed.
XMC flash chip boot-up fix successful!
Configuring flash size...
NOTE: In case of failure, please set a specific flash size.
SHA digest in image updated.
Flash will be erased from 0x00000000 to 0x001b3fff...
Wrote 1783296 bytes at 0x00000000 in 23.4 seconds (610.4 kbit/s).
Hash of data verified.

Hard resetting via RTS pin...

More Information

The flash appears to complete, but board is stuck in bootloop with the output:

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0xeac
load:0x403c8700,len:0xc28
load:0x403cb700,len:0x2ff8
entry 0x403c88ac
E (31) bootloader_flash: XMC flash startup fail
E (31) boot.esp32s3: failed when running XMC startup flow, reboot!
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)

additionally, "esptool flash-id" shows:

WARNING: XMC flash chip boot-up failure detected! Running XMC25QHxxC startup flow.
WARNING: XMC flash boot-up fix failed.
XMC flash chip boot-up fix successful!
Flash Memory Information:
=========================
Manufacturer: 20
Device: 7018
Detected flash size: 16MB
Flash type set in eFuse: quad (4 data lines)
Flash voltage set by eFuse: 3.3V

ive tried a ton of troubleshooting, but nothing changes the warning messages, or boot loop. things tried:
flashing at different offset (gave expected error regarding missing header)
--no-stub option
-fm dio option
flashing from both usb ports
powering from both usb ports
different micropython variants: 4mb, spiram
manually setting --flash-size to 8MB and 16MB

Other Steps to Reproduce

No response

I Have Read the Troubleshooting Guide

  • I confirm I have read the troubleshooting guide.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions