ayushsharma82 / ElegantOTA

OTA updates made slick and simple for everyone!
https://elegantota.pro
GNU Affero General Public License v3.0
636 stars 117 forks source link

ESP32S3 N32R8 won't boot correct partition after OTA #232

Open jvl88 opened 1 week ago

jvl88 commented 1 week ago

Hello,

I have noticed an issue where using the eps32s3 wroom 2 vs. esp32s3 results in not being able to browse to the OTA page. I use an AP and browse to 192.168.4.1/update.

When I compile it with ESP32S3 dev settings within Arduino IDE, it works fine. When I compile it with ESP32S3 dev Module Octal (Wroom2), the chip I actually use (ESP32S3 Wroom 2 N32R8), it will launch the AP but won't load the server/webpage.

Another thing I noticed is that when using the ElegantOTA "successfully" it doesn't reboot the uploaded firmware but the original one. Firmware is correct/working cause when uploaded via USB no issues in that regard. So somehow, when using OTA it won't select the right partition? just guessing here. Any help would be appreciated.

Thank you in advance. Kind regards, Jay

jvl88 commented 5 days ago

After going over all the used libraries I discovered my IDE was using an older AsyncTCP version when compiling. Removing that redirected the IDE to the correct library during compiling. The issue now seems to have been resolved.

jvl88 commented 5 days ago

Cheered to soon. It works, but not with 32MB.

The OTA not launching for ESP32S3 Wroom 2 has been resolved by fixing the double library issue, as mentioned above.

However when using a 32MB partition scheme (16/16) it doesn't boot the update firmware after OTA, but the previous one. When using a 16MB partition scheme (8/8) it does boot the correct firmware after OTA.