-->
Page 1 of 2

OTA Fail with "Not enough Space" Error

PostPosted: Fri May 11, 2018 8:40 am
by m.maazi
Hi.
I am trying to use https://github.com/esp8266/Arduino/blob/master/doc/ota_updates/readme.rst method to upload sketch to my esp8266. but every time it fail with this error:
Code: Select allSketch uses 275612 bytes (55%) of program storage space. Maximum is 499696 bytes.
Global variables use 33964 bytes (41%) of dynamic memory, leaving 47956 bytes for local variables. Maximum is 81920 bytes.
17:59:57 [ERROR]: Bad Answer: ERR: ERROR[4]: Not Enough Space


the selected serial port
 does not exist or your board is not connected

and my esp prints "Error[1]: Begin Failed" in serial port.
My module is "ESP8266MOD" by AI Thinker.
I use IDE version 1.8.5 & Python 3.6 & last esp8266 core library published.
Could anyone please help me solve the problem?
Thanks & sorry for poor English.

Re: OTA Fail with "Not enough Space" Error

PostPosted: Fri May 11, 2018 9:04 am
by rudy
Check the size of the flash on the module and then select this size in Tools > Flash Size. You probably have it set for 512K and that is too small.

Re: OTA Fail with "Not enough Space" Error

PostPosted: Fri May 11, 2018 9:06 am
by m.maazi
Thanks for reply.
I tried EVERY module type & flash size before posting my problem.

Re: OTA Fail with "Not enough Space" Error

PostPosted: Fri May 11, 2018 9:20 am
by rudy
Check the memory size of your device. If it only has 512K then there is nothing that you can do. I have a few ESP-07 boards, and have the same problem. Only 512K and not enough for OTA.