esp-idf/components/partition_table
Harshit Malpani bbbede07d0
fix(partition_table): Check partition size for type APP
The size of partition of type APP should be multiple of 4 KB. Partition
generation tool now make this as a mandatory requirement. This is
minimum flash erase size. If the size of the APP type partition is not
aligned to 4 KB then the last erase operation could go beyond the allocated
partition and hence may fail. This issue would only be observed when the
firmware size grows very close to the allocated partition size, and hence
causing the OTA update to fail.

For already deployed devices on-field with the size of APP partition not
aligned to flash sector boundary, it is best to ensure that firmware
size always remains within the lower 4 KB boundary of the total
allocated space. While migrating to ESP-IDF 5.3 release, partition table
for an existing project can be adjusted accordingly for the build to
succeed.

Found during discussion in https://github.com/espressif/esp-idf/pull/12460
2023-12-11 10:14:57 +05:30
..
test_gen_esp32part_host fix(partition_table): Check partition size for type APP 2023-12-11 10:14:57 +05:30
check_sizes.py partition_table: Add warning when partitions are nearly full 2022-05-13 07:14:04 +00:00
CMakeLists.txt gen_esp32part: allow secure boot v2 based app partition size 4K aligned 2023-02-08 03:23:46 +00:00
gen_empty_partition.py partition_table: add a test for total partition size error 2022-02-21 10:28:29 +03:00
gen_esp32part.py fix(partition_table): Check partition size for type APP 2023-12-11 10:14:57 +05:30
gen_extra_subtypes_inc.py parttool: fix extra_partition_subtypes attribute parsing 2022-09-20 11:28:52 +05:30
Kconfig.projbuild nvs_flash: Added helper component nvs_sec_provider 2023-05-23 13:55:53 +05:30
partitions_singleapp_coredump.csv global: update note in the partition tables 2019-07-27 10:28:16 +02:00
partitions_singleapp_encr_nvs.csv nvs_flash: Modify the default NVS initialization API with internal nvs encryption 2021-01-20 11:12:14 +00:00
partitions_singleapp_large_coredump.csv partition_table: Add a "single factory app (large)" option for 1.5MB app size 2021-04-16 16:40:47 +10:00
partitions_singleapp_large_encr_nvs.csv partition_table: Add a "single factory app (large)" option for 1.5MB app size 2021-04-16 16:40:47 +10:00
partitions_singleapp_large.csv partition_table: Add a "single factory app (large)" option for 1.5MB app size 2021-04-16 16:40:47 +10:00
partitions_singleapp.csv global: update note in the partition tables 2019-07-27 10:28:16 +02:00
partitions_two_ota_coredump.csv global: update note in the partition tables 2019-07-27 10:28:16 +02:00
partitions_two_ota_encr_nvs.csv nvs_flash: Modify the default NVS initialization API with internal nvs encryption 2021-01-20 11:12:14 +00:00
partitions_two_ota.csv global: update note in the partition tables 2019-07-27 10:28:16 +02:00
parttool.py feat(partition_table): Add read-only partition flag and functionality 2023-10-11 00:01:05 +02:00
project_include.cmake partition_table: Support registering custom subtypes 2022-08-03 05:18:37 +00:00