ut: Support esp8684 with 2M flash being able to run unit test

This commit is contained in:
songruojing 2021-12-14 16:48:20 +08:00
parent 952b4d848f
commit c10d15cc3a
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Special partition table for unit test app
#
# 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, 0xb000, 0x5000
otadata, data, ota, 0x10000, 0x2000
phy_init, data, phy, 0x12000, 0x1000
factory, 0, 0, 0x20000, 0x160000
# these OTA partitions are used for tests, but can't fit real OTA apps in them
# (done this way to reduce total flash usage.)
ota_0, 0, ota_0, , 64K
ota_1, 0, ota_1, , 64K
# flash_test partition used for SPI flash tests, WL FAT tests, and SPIFFS tests
flash_test, data, fat, , 320K
nvs_key, data, nvs_keys, , 0x1000, encrypted
# Note: occupied 1.85MB in the 2MB flash
1 # Special partition table for unit test app
2 #
3 # Name, Type, SubType, Offset, Size, Flags
4 # Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
5 nvs, data, nvs, 0xb000, 0x5000
6 otadata, data, ota, 0x10000, 0x2000
7 phy_init, data, phy, 0x12000, 0x1000
8 factory, 0, 0, 0x20000, 0x160000
9 # these OTA partitions are used for tests, but can't fit real OTA apps in them
10 # (done this way to reduce total flash usage.)
11 ota_0, 0, ota_0, , 64K
12 ota_1, 0, ota_1, , 64K
13 # flash_test partition used for SPI flash tests, WL FAT tests, and SPIFFS tests
14 flash_test, data, fat, , 320K
15 nvs_key, data, nvs_keys, , 0x1000, encrypted
16 # Note: occupied 1.85MB in the 2MB flash

View File

@ -0,0 +1,4 @@
CONFIG_ESP_SYSTEM_MEMPROT_FEATURE=n
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partition_table_unit_test_app_2m.csv"
CONFIG_PARTITION_TABLE_FILENAME="partition_table_unit_test_app_2m.csv"