Page 1 of 1

IDF Update 3.2.2 on 3.1.1 product via OTA

Posted: Tue Aug 27, 2019 10:03 am
by pgislard
Hello,

We have a customer that have a production of device using a ESP32 WROVER with an application based on IDF 3.1.1.
The application is using two OTA partitions for updates.
We would like to know if we can update the application with IDF 3.2.2 and flash it via OTA only.

We are particularly concerned about the following change (https://github.com/espressif/esp-idf/releases/v3.2):
Changes not compatible with earlier versions:

NVS: Support has been added for NVS blobs larger than 1984 bytes. NVS partitions created from earlier ESP-IDF versions will be automatically updated when written from ESP-IDF V3.2. NVS partitions written from ESP-IDF V3.2 are not compatible with the NVS format used by earlier versions of ESP-IDF. It is possible to support the updated NVS partition format in ESP-IDF v3.1.x via the "Enable multi-page blob support" config option.
Wear Levelling: Wear Levelling flash partition format has been updated to Version 2, to support flash encryption. Version 1 Wear Levelling partitions will be automatically updated to Version 2. Version 2 partitions are not compatible with ESP-IDF V3.1.x or earlier.
Thank you.

Re: IDF Update 3.2.2 on 3.1.1 product via OTA

Posted: Tue Aug 27, 2019 9:36 pm
by MaxVapor
Yes but you will lose anything stored in NVS

Re: IDF Update 3.2.2 on 3.1.1 product via OTA

Posted: Wed Aug 28, 2019 4:30 am
by ESP_Angus
Hi pgislard,

Updating v3.1.1 to v3.2.2 will work and you shouldn't lose any data in NVS or wear levelling.

However, if you need to roll back from v3.2.x to an older v3.1.x firmware for any reason then data kept in the NVS & any wear levelling partitions will be lost, as these will need to erased to the respective older formats.