esp_https_ota: Mismatch chip id, expected 0, found 28020

buddhika
Posts: 12
Joined: Tue Sep 20, 2022 8:14 am

esp_https_ota: Mismatch chip id, expected 0, found 28020

Postby buddhika » Tue Sep 20, 2022 8:21 am

I am doing ota using advanced_https_ota_example from the examples and I am getting above error esp_https_ota: Mismatch chip id, expected 0, found 28020. I am having a direct link to the binary file on the server.please tell me how to fix this issue

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

Re: esp_https_ota: Mismatch chip id, expected 0, found 28020

Postby ESP_Sprite » Wed Sep 21, 2022 2:34 am

28020 is hex 0x6d74, which are two ASCII characters ('mt'). Are you 100% sure what OTA is getting from the server is actually a binary, and not e.g. a redirect to a binary?

buddhika
Posts: 12
Joined: Tue Sep 20, 2022 8:14 am

Re: esp_https_ota: Mismatch chip id, expected 0, found 28020

Postby buddhika » Fri Oct 28, 2022 6:49 am

https://download942.mediafire.com/6aa49 ... ps_ota.bin this is my URL and it is a direct link. what might be the issue.

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

Re: esp_https_ota: Mismatch chip id, expected 0, found 28020

Postby ESP_Sprite » Fri Oct 28, 2022 9:20 am

Seems it doesn't lead to the direct download of the file. For me (and presumably the ESP32 as well) it leads to a html page. The ESP32 assumes that html page is the OTA file and flashes that.

buddhika
Posts: 12
Joined: Tue Sep 20, 2022 8:14 am

Re: esp_https_ota: Mismatch chip id, expected 0, found 28020

Postby buddhika » Fri Oct 28, 2022 9:37 am

Dear ESP_Sprite, I tried with all three browsers chrome,firefox and microsoft edge.given link directly downloaded the file.
https://download942.mediafire.com/6aa49 ... ps_ota.bin what is the browser that you are using or what might be the issue.

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

Re: esp_https_ota: Mismatch chip id, expected 0, found 28020

Postby ESP_Sprite » Sun Oct 30, 2022 2:07 am

It probably is because those browsers share the cookies for your session on that site, skipping the HTML page. Use a tool like curl or wget to grab that url and you'll see it results in html rather than your binary.

Who is online

Users browsing this forum: No registered users and 111 guests