8 meg program partition

maneco
Posts: 9
Joined: Tue May 23, 2017 12:09 pm

8 meg program partition

Postby maneco » Tue Aug 16, 2022 6:50 pm

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!

maneco
Posts: 9
Joined: Tue May 23, 2017 12:09 pm

Re: 8 meg program partition

Postby maneco » Sat Sep 17, 2022 11:10 pm

any ideas?
thanks!

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: 8 meg program partition

Postby ESP_Sprite » Sun Sep 18, 2022 1:37 am

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.

Who is online

Users browsing this forum: No registered users and 63 guests