Replies: 2 comments 5 replies
-
mp-image-tool-esp32 can resize the partitions on an ESP32 binary image. I've used it to trim down the image to fit a S3 MINI PRO. It has a ESP32-S3FH4R2 with only 4 MB flash |
Beta Was this translation helpful? Give feedback.
-
Hi @daleka, Thanks for the comprehensive description of the problem.
This seems like a limitation with the v1.25 ESP32_GENERIC_S3 build, I double checked and the partition table embedded in However, we did some work for MicroPython v1.26 to support "4MiB and larger" flash chips from a common partition table and a single binary image. The partition table embedded in I don't have a 4MiB flash ESP32-S3 here to check, but if you're able to please do |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
Board: ESP32‑S3‑WROOM‑1, 4 MB SPI‑flash, no PSRAM
Host: Windows 11, COM3
Tools: Thonny 4.1.4, esptool 4.8.1
=== Problem =============================================================
Right after flashing the board reboots in a loop with
BootROM detects the flash as 4 MB (0x400000), but the partition table
inside the firmware contains an entry that extends to 8 MB
(2 MB offset + 6 MB size).
=== What I have tried ===================================================
esptool.py erase_flash
) → same result.--flash_size detect
and--flash_size 4MB
.–
ESP32_GENERIC_S3‑20250415‑v1.25.0.bin
–
ESP32_GENERIC_S3‑20250724‑v1.26.0‑preview.bin
gave a PSRAM error (my module has no PSRAM), so I reflashed – since
then it’s stuck in the “partition … exceeds flash size” loop.
Every flashing session ends with “Hash verified”, yet MCU reboots
immediately afterward.
=== Suspicions ==========================================================
GENERIC_S3
images are apparently built for 8 MB flash.partitions-4MiB.csv
.=== Questions ==========================================================
make
options are needed to build a firmwarewith a 4 MB partition table?
partition table CSV, without rebuilding the whole firmware?
Any hints are highly appreciated – thanks in advance! 😊
Beta Was this translation helpful? Give feedback.
All reactions