Skip to content
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

after successful download, just restarts the download code #7

Open
epremeaux opened this issue Oct 25, 2022 · 2 comments
Open

after successful download, just restarts the download code #7

epremeaux opened this issue Oct 25, 2022 · 2 comments

Comments

@epremeaux
Copy link

I gave this a try (code exactly as is, just changed wifi and host url) on an ESP32-WROOM32.
After successfully downloading the new application and rebooting, the same download code is running again. Not the new application. I must be missing something here..
any ideas?

@KARTIK-eng
Copy link

i'm facing exactly the same issue. Did u happen to find a solution to this?

@epremeaux
Copy link
Author

oi. sorry. honestly dont remember it was so long ago. Have you confirmed your ESP has enough empty flash space and the file system is set up correctly? A 4MB ESP will only let you have an application approximately 1.5MB in size, INCLUDING the ota code. Current running application is in one partition. The new application is being uploaded to another partition, and there is some additional stuff occupying a few hundred kb such as bootloader, software for the wifi device, etc. I do know that if you try to upload a new firmware thats too large, it will not immediately detect, but as it gets to the point of running out of space, it will detect, error out, and NOT switch the config to the new partition (and thus, upon reboot, runs the old firmware again).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants