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:
  1. sec_cert,  0x3F, ,0xd000,    0x3000, ,  # Never mark this as an encrypted partition
  2. nvs,      data, nvs,     0x10000,   0x6000,
  3. otadata,  data, ota,     ,          0x2000
  4. phy_init, data, phy,     ,          0x1000,
  5. ota_0,    app,  ota_0,   0x20000,   1600K,
  6. ota_1,    app,  ota_1,   ,          1600K,
  7. 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 ESP_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