Update OTA example.

filipESP
Posts: 65
Joined: Tue Nov 06, 2018 12:42 pm

Update OTA example.

Postby filipESP » Tue Mar 26, 2019 1:32 pm

Hello,
I try to test OTA example, using the Ethernet instead WiFi and I get this error:
I (10124) ota: Starting OTA example...
E (10124) esp_ota_ops: ota data invalid, no current app. Assuming factory
I (10124) ota: Running partition type 0 subtype 0 (offset 0x00010000)
Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unha
ndled.
Core 1 register dump:

Is possible to use OTA with Ethernet?

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

Re: Update OTA example.

Postby ESP_Sprite » Wed Mar 27, 2019 2:24 am

It should be possible; WiFi/Ethernet just are different transportation methods. What's the backtrace you're getting here?

filipESP
Posts: 65
Joined: Tue Nov 06, 2018 12:42 pm

Re: Update OTA example.

Postby filipESP » Wed Mar 27, 2019 11:44 am

I resolved it already, but I have a question. How to recognise if the .bin file is newer than previously?
I want to update the app only when will apear the new version of it.
And second Q is where i can find SimpleHTTPSerwer file ( I mean about explorer ).

filipESP
Posts: 65
Joined: Tue Nov 06, 2018 12:42 pm

Re: Update OTA example.

Postby filipESP » Wed Mar 27, 2019 4:32 pm

I found info about esp_efuse_check_secure_version(new_app_info.secure_version) function but I don't know, where this function is included.

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

Re: Update OTA example.

Postby ESP_Sprite » Thu Mar 28, 2019 2:45 am

Suggest you put the question in a new topic, but you may want to look at esp_ota_get_app_description if your esp-idf version is new enough.

Who is online

Users browsing this forum: No registered users and 57 guests