Page 1 of 1

Update OTA example.

Posted: Tue Mar 26, 2019 1:32 pm
by filipESP
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?

Re: Update OTA example.

Posted: Wed Mar 27, 2019 2:24 am
by ESP_Sprite
It should be possible; WiFi/Ethernet just are different transportation methods. What's the backtrace you're getting here?

Re: Update OTA example.

Posted: Wed Mar 27, 2019 11:44 am
by filipESP
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 ).

Re: Update OTA example.

Posted: Wed Mar 27, 2019 4:32 pm
by filipESP
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.

Re: Update OTA example.

Posted: Thu Mar 28, 2019 2:45 am
by ESP_Sprite
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.