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

kesha.modhia
Posts: 44
Joined: Fri May 13, 2022 12:36 pm

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

Postby kesha.modhia » Fri Aug 04, 2023 10:10 am

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

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

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

Postby MicroController » Fri Aug 04, 2023 1:06 pm

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

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

pacucha42
Posts: 31
Joined: Fri Mar 29, 2019 12:56 pm

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

Postby pacucha42 » Mon Aug 07, 2023 9:19 am

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

kesha.modhia
Posts: 44
Joined: Fri May 13, 2022 12:36 pm

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

Postby kesha.modhia » Thu Aug 17, 2023 9:44 am

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


RandomInternetGuy
Posts: 52
Joined: Fri Aug 11, 2023 4:56 am

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

Postby RandomInternetGuy » Tue Aug 22, 2023 8:38 am

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.

Who is online

Users browsing this forum: Google [Bot] and 136 guests