Esp32 reverts to previous espHome configuration on power cycle

I have an esp32 that I repurposed. When I edit/install with ESPHome Builder, it works fine. But, when I cycle power, the esp32 reverts to the previous configuration. I think the new install is going to volatile memory and the old configuration is in static.

Any suggestions on how to fix this? Use esptool to wipe memory?

Hi
You will usually tend to get more replies if you include your Yaml. Say what esp device it was and how you flashed it.

Which yaml would you like to see? Both compiled, installed, uploaded and worked.

I used web.esphome.io to prepare for first use. Then used HA/esphome device builder to edit and make. No errors The new one works until I power cycle. Then the old one works until I re-install.

Read somewhere that bootloader reading from wrong partition may cause this

Made me think that listing incorrect platform or board may lead to this. Never seen it and barely understand it but just a guess

That said, just like previous mention, sure would be helpful to know what your loading into the device. The esphome yaml or whatever l

If you have 2 yaml then show both. We are all only guessing what you have done.
So it looks like you used serial to load first time then OTA for all other flashes?

I have one device that uses URT for a sensor and I have to set the logger to baud rate 0. If I flash OTA it appears to work when first flashed but later the new changes to yaml haven’t taken. Only works if I flash that device by serial.

When you change the framework, you need to upload through serial cable.

Spiro - I tried flashing with serial. That fixed my problem. Thanks!

Karosm - I had changed Platform. I tried the serial flash and it worked. Thanks!