Page 1 of 1

What is the difference between data partitions fctry and nvs ?

Posted: Sat Aug 22, 2020 8:32 am
by ytan86
Hi

This is the partition.csv from rainmaker examples/switch:

Code: partition.csv Select all


sec_cert,  0x3F, ,0xd000,    0x3000, ,  # Never mark this as an encrypted partition
nvs, data, nvs, 0x10000, 0x6000,
otadata, data, ota, , 0x2000
phy_init, data, phy, , 0x1000,
ota_0, app, ota_0, 0x20000, 1600K,
ota_1, app, ota_1, , 1600K,
fctry, data, nvs, 0x340000, 0x6000
What is fctry for? If is reserved for rainmaker only, or can I use fctry with esp_err_tnvs_flash_init_partition?

Re: What is the difference between data partitions fctry and nvs ?

Posted: Sat Aug 22, 2020 9:49 am
by Piyush
Hello,

The nvs partition has information like Wi-Fi credentials, custom device names, and any other information you store using nvs calls. The fctry is also an nvs partition, but it is used for information like node id, private key and certificate required for cloud communication. You may consider it as a read-only partition which isn't erased during a factory reset operation.

Regards,
Piyush