conf: add custom partition table

This commit is contained in:
King Kévin 2022-07-20 11:20:27 +02:00
parent 25d93e38d1
commit 2a5b6bcf65
2 changed files with 13 additions and 0 deletions

7
partitions.csv Normal file
View File

@ -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,
1 # Name, Type, SubType, Offset, Size, Flags
2 # Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
3 nvs, data, nvs, , 0x4000,
4 otadata, data, ota, , 0x2000,
5 phy_init, data, phy, , 0x1000,
6 dfu, app, factory, , 200K,
7 app, app, ota_0, , 1M,

View File

@ -8,3 +8,9 @@ CONFIG_TINYUSB_DFU=y
# Communication Device Class (CDC)
#
CONFIG_TINYUSB_DFU_CDC_ENABLED=y
#
# Partition Table
#
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"