-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTA Example/Documentation #298
Comments
You might have a look at my project https://github.com/taunusflieger/anemometer. I have an ota implementation based on esp-idf and scripts which create the application image without the boot loader. |
@taunusflieger thanks! That's actually very helpful. |
You might be right, but if you are I would not understand why you would create the image without the bootloader. This image gets written into one of the two OTA partitions. The boot process picks up one of the two partitions and loads the image from there. That works with the solution. So either it does not contain the boot loader and it is not required or it contains the boot loader as it is required. Why then would you want to create the image without a boot loader? |
Any update on this? It looks like there's still not a way to get a binary I can use for OTA updates. Given that |
From looking at other issues/comments, it seems like the tool always puts the binary in the first app partition? Is that something I can actually rely on? It doesn't seem to be documented anywhere. If so, I think I'll just have to produce a full sized binary, manually parse the partition table, manually slice it out, and hope for the best... |
It would be great to have some instructions/examples on how to implement OTA.
Probably the first step would be to build a partition table supporting two OTA partitions, like this:
Then flash the esp using:
At this point, the initial software version would be flashed.
Then to installing the first update:
I know that I can export the firmware to a
.bin
file using:But this would include the bootloader, right? But I don't want to reflash the bootloader. I only want to have the OTA partition. So how would I save an image with only one partition?
The next step is probably to call
espflash write-bin-to-flash
? But using which arguments and how would one specify to only write to the OTA partition?The text was updated successfully, but these errors were encountered: