Page 1 of 1

Customm flash error

Posted: Fri Nov 26, 2021 9:18 am
by Gjoedensen
I have created a custom board for ESP32-D0WD-V3 (revision 3) with a 16MB flash chip (AT25SF128A).
When I program the board I receive an error that it couldn't auto-detect the flash size, and therefore defaulting to 4MB.

Output:

Code: Select all

Connecting...
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 58:bf:25:a5:7d:18
Stub is already running. No upload is necessary.
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0x1891f, SizeID=0x1), defaulting to 4MB
Flash will be erased from 0x00001000 to 0x00005fff...
I have programmed it and validated that the Serial, WiFi, and I2C are working, but I am only allowed to use 1/4 of the chip.

Has anyone experienced this problem?

Re: Customm flash error

Posted: Fri Nov 26, 2021 10:22 am
by ESP_Sprite
I'd say your flash is incompatible with esp-idf, but if it works OK aside from the flash size issue, you can try to file an issue to add your specific flash chip; perhaps they can do that. For now, you can also set the flash size manually on the esptool.py command line and it'll use that instead of trying to autodetect.