I have M5 Core, which I understand to have 4MB flash.
My firmware.bin is 1,065,552 bytes.
It seems like after the OTA update after reboot, the old firmware still loads, and then I get an error that there's no room to OTA.
Same code works fine on other ESP32 dev boards.
Any ideas? Is something interfering with the self-reflashing?
EDIT:
In platformio I see the following when I build:
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 13.9% (used 45448 bytes from 327680 bytes)
Flash: [======== ] 81.3% (used 1065286 bytes from 1310720 bytes)
Why does it seem like I don't really have 4MB of flash, or that so much is being reserved for RAM?