What is the difference between data partitions fctry and nvs ?

ytan86
Posts: 9
Joined: Thu Aug 15, 2019 3:02 am

What is the difference between data partitions fctry and nvs ?

Postby ytan86 » Sat Aug 22, 2020 8:32 am

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?

ESP_Piyush
Posts: 309
Joined: Wed Feb 20, 2019 7:02 am

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

Postby ESP_Piyush » Sat Aug 22, 2020 9:49 am

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

Who is online

Users browsing this forum: No registered users and 79 guests