partition > 8MB

grooves
Posts: 12
Joined: Fri Aug 25, 2017 2:51 pm

partition > 8MB

Postby grooves » Mon Feb 05, 2024 5:10 pm

Hello folk,

I have a t-display amolded s3 with 16MB flash, 8 MB psram, esp32s3
I want to use a 13 MB partition, filled with raw data for gif animation,
everything is ok when the partition is filled < 8MB data, above I get an error:


id.py build shows:
elf/bin/ld: httpd.elf section `.flash.rodata' will not fit in region `drom0_0_seg'
/home/micha/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: region `drom0_0_seg' overflowed by 1768950 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


idf.py size shows:

Total sizes:
Used static IRAM: 82766 bytes ( 279474 remain, 22.8% used)
.text size: 81739 bytes
.vectors size: 1027 bytes
Used stat D/IRAM: 162857 bytes ( 10071 remain, 94.2% used)
.data size: 19937 bytes
.bss size: 142920 bytes
Used Flash size : 10148637 bytes
.text : 712007 bytes
.rodata : 9436374 bytes
Total image size: 10251340 bytes (.bin may be padded larger)


idf.py partition-table shows:
[1/1] cd /home/micha/projects/projects...*************************************
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,13M,
storage,data,spiffs,0xe00000,1000K,
*******************************************************************************

any hints are welcomed,
Mike

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

Re: partition > 8MB

Postby sukeshak » Sun Feb 11, 2024 4:50 pm

Your actual file size requirements might be larger
https://github.com/espressif/esp-idf/issues/9913

You can create a fat partition and store your gif/raw files there instead of in a factory app partition which is used for firmware.

Who is online

Users browsing this forum: No registered users and 318 guests