From ac24edfadd8451db39ae8285705935fc8a284e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sat, 23 Jul 2022 13:13:57 +0200 Subject: [PATCH] conf: add custom partition table --- examples/device/dfu_freertos/partitions.csv | 7 +++++++ examples/device/dfu_freertos/sdkconfig.defaults | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 examples/device/dfu_freertos/partitions.csv diff --git a/examples/device/dfu_freertos/partitions.csv b/examples/device/dfu_freertos/partitions.csv new file mode 100644 index 000000000..fc9a91e2b --- /dev/null +++ b/examples/device/dfu_freertos/partitions.csv @@ -0,0 +1,7 @@ +# Name, Type, SubType, Offset, Size, Flags +# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap +nvs, data, nvs, , 0x4000, +otadata, data, ota, , 0x2000, +phy_init, data, phy, , 0x1000, +dfu, app, factory, , 200K, +app, app, ota_0, , 1M, diff --git a/examples/device/dfu_freertos/sdkconfig.defaults b/examples/device/dfu_freertos/sdkconfig.defaults index 83871619e..7586326df 100644 --- a/examples/device/dfu_freertos/sdkconfig.defaults +++ b/examples/device/dfu_freertos/sdkconfig.defaults @@ -1,3 +1,10 @@ CONFIG_IDF_CMAKE=y CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y + +# +# Partition Table +# +CONFIG_PARTITION_TABLE_CUSTOM=y +CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" +CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"