Page 1 of 1

How to flash OTA directly from a binary?

Posted: Thu Jul 11, 2024 5:04 pm
by rin67630
Can it be done with esptools.py?

Re: How to flash OTA directly from a binary?

Posted: Thu Jul 11, 2024 9:54 pm
by lbernstone
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

Re: How to flash OTA directly from a binary?

Posted: Fri Jul 12, 2024 8:25 pm
by rin67630
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!

Re: How to flash OTA directly from a binary?

Posted: Fri Jul 12, 2024 8:52 pm
by lbernstone

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

Posted: Fri Jul 12, 2024 9:04 pm
by rin67630
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.