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
how to increase the partition by 5 mb from address location 0x400000
-
- Posts: 44
- Joined: Fri May 13, 2022 12:36 pm
-
- 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
Yes.Partition_1, data, spiffs, 0x400000, 0x500000,
Is above given is correct ?
Instead of 0x500000 you can also write 5M.
Re: how to increase the partition by 5 mb from address location 0x400000
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
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
-
- Posts: 44
- Joined: Fri May 13, 2022 12:36 pm
Re: how to increase the partition by 5 mb from address location 0x400000
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
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
-
- Posts: 1708
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
-
- Posts: 52
- Joined: Fri Aug 11, 2023 4:56 am
Re: how to increase the partition by 5 mb from address location 0x400000
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.
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 115 guests