-->
Page 1 of 1

OTA D1_mini & D1_miniPRO

PostPosted: Wed Nov 09, 2022 5:27 am
by ESP_DAU
Hello All,

my sketch runs fine on WEMOS D1mini 4MB and WEMOS D1miniPro 16MB.
OTA (loading firmware from a fileserver) ist not working on the 4MB Board.

Error on 4MB Board

CALLBACK: HTTP update process started
CALLBACK: HTTP update fatal error code -107
HTTP_UPDATE_FAILD Error (-107): New Binary Does Not Fit Flash Size

my Envirement: ARDUINO Framework with Platform IO

#--------- Platformio.ini File:

[[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
monitor_speed = 115200
upload_speed = 921600
board_build.ldscript = eagle.flash.4m2m.ld

[env:d1_mini_pro]
platform = espressif8266
board = d1_mini_pro
framework = arduino
monitor_speed = 115200
upload_speed = 921600

#------- Partitions Manager
I tryed to use different *.LD files to get free OTA Space in Flash, but no 4Mxx.ld file worked fine.

#-- Compiling info:
RAM: [===== ] 45.1% (used 36976 bytes from 81920 bytes)
Flash: [=== ] 34.8% (used 363781 bytes from 1044464 bytes)

#--
Calculating size .pio\build\d1_mini\firmware.elf
text data bss dec hex filename
354429 9404 27624 391457 5f921 .pio\build\d1_mini\firmware.elf


#----

Anyone has a idear what I could change to get OTA on 4B ESP8266 to work? Thanks!!!!!

Re: OTA D1_mini & D1_miniPRO

PostPosted: Fri Nov 11, 2022 5:35 am
by rooppoorali
This error usually occurs due to insufficient flash size. https://github.com/esp8266/Arduino/issues/7457