Page 1 of 1

8 meg program partition

Posted: Tue Aug 16, 2022 6:50 pm
by maneco
Hi, i'm struggling with code larger than 4 meg , i modified partition table to :

nvs data nvs 0x9000 0x5000
otadata data ota 0xe000 0x2000
app0 app ota_0 0x10000 0x7AE000
spiffs data spiffs 0x7BE000 0x19000

and changing boards.txt to max upload to 8052736

i get the error:
region `drom0_0_seg' overflowed by 2889588 bytes
Thanks for any help!

Re: 8 meg program partition

Posted: Sat Sep 17, 2022 11:10 pm
by maneco
any ideas?
thanks!

Re: 8 meg program partition

Posted: Sun Sep 18, 2022 1:37 am
by ESP_Sprite
Aside from the flash partition, allocation is also limited by the address space that exists for the various parts of your program. For instance, on the ESP32, rodata can only be 4MiB or less (if memory serves), so you may be running into that instead.