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"