What is firmware version printed in logs on ESP start and how to change it

MaazSk
Posts: 6
Joined: Mon Dec 02, 2019 5:37 am

What is firmware version printed in logs on ESP start and how to change it

Postby MaazSk » Mon Dec 20, 2021 6:05 pm

Hello Everyone,

I was writing a code for OTA updates then I came across a warning as below
I (22:25:52.304) OTA: Running firmware version: 7490ea9-dirty
W (22:25:52.486) OTA: Current running version is the same as a new. We will not continue the update.
E (22:25:52.534) OTA: image header verification failed
E (22:25:52.588) OTA: ESP_HTTPS_OTA upgrade failed
I want to know how can I change the firmware version of the device.

1. I tried to clean the project and rebuilt it but no change
2. I made certain changes in the code like added some print statement but then also there are no changes in the firmware version

So, if I want to change the firmware version then what do I need to do?

Thanks in advance

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: What is firmware version printed in logs on ESP start and how to change it

Postby ESP_Sprite » Tue Dec 21, 2021 1:38 am

It's the application version. By default, it's set to the git commit of your application (so you'd change it to a new 'version' by committing your app code) but you can change it to get the version from somewhere else.

MaazSk
Posts: 6
Joined: Mon Dec 02, 2019 5:37 am

Re: What is firmware version printed in logs on ESP start and how to change it

Postby MaazSk » Tue Dec 21, 2021 4:45 am

Thank you! @ESP_Sprite.

Who is online

Users browsing this forum: No registered users and 74 guests