IDF Update 3.2.2 on 3.1.1 product via OTA

pgislard
Posts: 1
Joined: Tue Aug 27, 2019 9:57 am

IDF Update 3.2.2 on 3.1.1 product via OTA

Postby pgislard » Tue Aug 27, 2019 10:03 am

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.

MaxVapor
Posts: 8
Joined: Fri Aug 23, 2019 4:52 pm

Re: IDF Update 3.2.2 on 3.1.1 product via OTA

Postby MaxVapor » Tue Aug 27, 2019 9:36 pm

Yes but you will lose anything stored in NVS

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: IDF Update 3.2.2 on 3.1.1 product via OTA

Postby ESP_Angus » Wed Aug 28, 2019 4:30 am

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.

Who is online

Users browsing this forum: Bing [Bot], ShinyGlossy and 205 guests