Page 1 of 1

how to increase the partition by 5 mb from address location 0x400000

Posted: Fri Aug 04, 2023 10:10 am
by kesha.modhia
I have enabled flash memory to 16 mb

Now i want to give partition of 5 Mb in flash to store app data

How much size i should set to give 5 Mb slot in partition

Partition_1, data, spiffs, 0x400000, 0x500000,

Is above given is correct ?

more what is the difference of app/data in size

Re: how to increase the partition by 5 mb from address location 0x400000

Posted: Fri Aug 04, 2023 1:06 pm
by MicroController
Partition_1, data, spiffs, 0x400000, 0x500000,

Is above given is correct ?
Yes.
Instead of 0x500000 you can also write 5M.

Re: how to increase the partition by 5 mb from address location 0x400000

Posted: Mon Aug 07, 2023 9:19 am
by pacucha42
Hi @kesha.modhia,
in addition to the previous reply by @MicroController: the details of partition table construction are available at https://docs.espressif.com/projects/esp ... ables.html

Re: how to increase the partition by 5 mb from address location 0x400000

Posted: Thu Aug 17, 2023 9:44 am
by kesha.modhia
nvs, data, nvs, 0x9000, 0x4000,
otadata, data, ota, 0xd000, 0x2000,
phy_init, data, phy, 0xf000, 0x1000,
factory, 0, 0, 0x10000, 0x1CF000,
ota_0, 0, ota_0, 0x1E0000,0x1CF000,
storage, data, spiffs, 0x3C0000,0x3F000,
Partition_1,data,spiffs,0x400000,0x500000,



Above given is my partition table, If I want to differentiate the file system
and want to store the data in 5 MB slot given in partition_1 how can I store data in that slot

Re: how to increase the partition by 5 mb from address location 0x400000

Posted: Thu Aug 17, 2023 10:06 am
by MicroController

Re: how to increase the partition by 5 mb from address location 0x400000

Posted: Tue Aug 22, 2023 8:38 am
by RandomInternetGuy
You should also be prepared for the contents of that partition to be potentially garbagified (garbagiatted?). When shrinking, it's "obvious" that some content may lay outside the new bounds, but I've seen the filesystem eaten even when enlarging it.

Just moving the end of that partition can cause it to get rebuilt and recreated if you follow example code too blithely . We skated over this in viewtopic.php?f=19&t=35166 but it happens. Be prepared to enforce a backup/restore to another filesystem/computer or over the network or whatever is safe.