I didnāt buy my board with my shield, instead opting to use an 8266 board I already had.
I tried to check the real flash size, but the main issue (not enough flash memory to store OTA file) didnāt allow it to get far enough to report the debug results.
So, I tried your second recommendation and started to collect the results:
Package* |
Available |
Used |
Free |
Needed (Uncompressed/Compressed) |
Delta (Uncompressed/Compressed) |
1 |
1023984 |
627953 |
396031 |
632112/422689 |
-236081/-26658 |
2 |
1023984 |
565711 |
458273 |
569856/384124 |
-111583/+74149 |
3 |
1044464 |
627937 |
416527 |
632096/422682 |
-215569/-6155 |
*Packages
(1) Original (_lite) using ā¦v25board_esp8266_d1_mini_lite.yaml@main package
(2) (1) with web server removed. This appears to only save ~60/39 KB (uncompressed/compressed), but is currently enough on ESPHome 2024.3 to make the difference if the board has or the config is set to 1 MB flash.
(3) Non (_lite removed) using ā¦v25board_esp8266_d1_mini.yaml@main package and web server re-enabled.
Only (2) and (3) completed an OTA install.
(1) and (2) reported
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
while (3) reported
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
There must be something fundamental I donāt understand about the logs since (3) indicated insufficient space as well (422682 required > 416527 available), but completed the OTA install.
Flash: [====== ] 60.1% (used 627937 bytes from 1044464 bytes)
========================= [SUCCESS] Took 9.74 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.0.###
INFO Uploading /data/build/ratgdo-double/.pioenvs/ratgdo-double/firmware.bin (632096 bytes)
INFO Compressed to 422682 bytes
Uploading: [============================================================] 100% Done...
Anywaysā¦after (3) worked, I tried your first recommendation again and sure enough the flash real size was reported as 4MB.
[09:59:37][D][sensor:093]: 'Flash Real Size': Sending state 4194304.00000 with 1 decimals of accuracy
So, now another thing I donāt understand (knowing the flash real size is 4MB) is why (3) indicated a slightly different (but still ~1MB) total flash size instead of ~4MB (i.e. 4194304).
When I first configured ratgdo, I asked about the right one to use (lite or not) and ended up using _mini and got under the impression that the 8266 boards were the D1 Mini Liteās, so thatās the configuration I used, but I guess that was wrong.
Thanks for your help! Hopefully this works uninterrupted for future firmware updates now.