How to flash OTA directly from a binary?

rin67630
Posts: 135
Joined: Sun Mar 11, 2018 5:13 pm

How to flash OTA directly from a binary?

Postby rin67630 » Thu Jul 11, 2024 5:04 pm

Can it be done with esptools.py?

lbernstone
Posts: 777
Joined: Mon Jul 22, 2019 3:20 pm

Re: How to flash OTA directly from a binary?

Postby lbernstone » Thu Jul 11, 2024 9:54 pm

Sure, you need to know where the OTA partition is located, but you can flash the app0 partition normally located at 0x10000 by

Code: Select all

./esptool.py --baud 961200 write_flash 0x10000 firmware.ino.bin

rin67630
Posts: 135
Joined: Sun Mar 11, 2018 5:13 pm

Re: How to flash OTA directly from a binary?

Postby rin67630 » Fri Jul 12, 2024 8:25 pm

lbernstone wrote:
Thu Jul 11, 2024 9:54 pm
Sure, you need to know where the OTA partition is located, but you can flash the app0 partition normally located at 0x10000 by

Code: Select all

./esptool.py --baud 961200 write_flash 0x10000 firmware.ino.bin
I meant updating over OTA (Over The Air).
Indeed it was easy and my PythonPatcher https://github.com/rin67630/ESP_Binary_patcher already integrates that possibility.
Enjoy!

lbernstone
Posts: 777
Joined: Mon Jul 22, 2019 3:20 pm

Re: How to flash OTA directly from a binary?

Postby lbernstone » Fri Jul 12, 2024 8:52 pm


rin67630
Posts: 135
Joined: Sun Mar 11, 2018 5:13 pm

Re: How to flash OTA directly from a binary? [solved]

Postby rin67630 » Fri Jul 12, 2024 9:04 pm

lbernstone wrote:
Fri Jul 12, 2024 8:52 pm
There are many ways to flash OTA. You will need to be more specific.
https://github.com/esp8266/Arduino/blob ... /espota.py
https://github.com/espressif/arduino-es ... e/examples
I already use espota.py from my PythonPatcher.

Who is online

Users browsing this forum: Bing [Bot] and 42 guests