update 1Mb esp8266

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

update 1Mb esp8266

#1 Post by megamarco83 » 17 Jul 2019, 11:30

in the past i experimented that was not possible to update esp8266 device using OTA that has on board 1mb like sonoff devices.
in the past i used the ESPEasy_2step_UploaderMega_1024.bin but after that update was not possible to upload the new firmware due to the fact that i received an error of not enough memory to update from ESPEasy_2step_UploaderMega_1024.bin to new bin file.

now i see that inside the latest build we have:
1) ESPEasy_2step_UploaderMega_1024.bin
and
2) ESP_Easy_mega-20190630_minimal_ESP8285_1M_OTA.bin
and finally
3) ESP_Easy_mega-20190630_normal_ESP8266_1M.bin

is the minimal bin the "bridge" firmware to allow the final firmare update and skip the "not enough space" error?
is it now possible to update a sonoff device with 1mb ?

what's the correct order to update a working sonoff without disconnecting it? flash first 1) then 2) then 3) or first 2) then 1) then 3) ?
thanks

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: update 1Mb esp8266

#2 Post by grovkillen » 17 Jul 2019, 13:02

First 1) then 2)

You wouldn't need multiple plugins for the sonoff basic so we have removed the plugins that aren't really needed and called it minimal.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

Re: update 1Mb esp8266

#3 Post by megamarco83 » 17 Jul 2019, 13:11

grovkillen wrote: 17 Jul 2019, 13:02 First 1) then 2)

You wouldn't need multiple plugins for the sonoff basic so we have removed the plugins that aren't really needed and called it minimal.
ok thanks, but, if need more plugin i can flash 3) after the minimal, or i can't because i will receive the error "not enought" memory?

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: update 1Mb esp8266

#4 Post by TD-er » 17 Jul 2019, 14:46

The thing is, you only have 1M - 128k for the sketch + OTA.
This means the currently active sketch + the new one you want to flash have to fit in the less than 900 k.
The smallest 2-step OTA image we have is about 300 k (a bit less), which means we have about 600 k left for an OTA image.

The minimal version we make in the nightly builds uses about 600k. This means that if you do add other plugins (and build it yourself), you will end up with an image that's too big to flash using 2-step OTA.

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

Re: update 1Mb esp8266

#5 Post by megamarco83 » 17 Jul 2019, 16:38

so, if i understand well, if i have a sonoff or esp8266 with 1mb of memory where i flashed a normal build and i would like to update it with a newer version normal build is not possible using OTA, correct?

what are the plugins inside the minimal build?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 47 guests