Skip to content

Unable to configure 8MB flash and PSRAM: "micropython.elf section .iram0.text' will not fit in region iram0_0_seg'" #15131

Discussion options

You must be logged in to vote

I found a workaround using make BOARD_VARIANT='SPIRAM' and I skip using idf.py menuconfig entirely. I'm running esp-idf 5.1.2.

Created partitions-8MiB-ota.csv, put in the appropriate entries for my setup:

nvs,      data, nvs,      0x9000,   0x4000
otadata,  data, ota,      0xd000,   0x2000
phy_init, data, phy,      0xf000,   0x1000
ota_0,    app,  ota_0,    0x10000,  2200K
ota_1,    app,  ota_1,    ,         2200K
vfs,      data, fat,      ,         1M
nvs_key,  data, nvs_keys, ,         0x1000

Then edited boards/sdkconfig.base (I know I know, that's probably wrong) and adjusted these:

# Changed from 4MB
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TA…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BetterAutomations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
1 participant