Post topics, source code that relate to the Arduino Platform

User avatar
By tlerdrden
#35645 Hi Krzysztof,

Thanks again for your answer.

Well, I am starting understanding the needs to perform an OTA upgrade. Since the memory point of view:

1. “Flash chip size is 2x the size of the sketch”.

So, if my flash size is 512k, my sketch should be less than 512k/2=256k.

However, the example OTA sketches I use ( from https://github.com/esp8266/Arduino/blob ... updates.md) are bigger than the required memory size. I have compiled the sketch in the Arduino IDE and getting these results:

1. BasicOTA.ino: 223.302 bytes / 1024 = 218kb. This means I have 256k - 218k = 38k space.


Link: https://github.com/esp8266/Arduino/blob ... sicOTA.ino

2. OTA-mDNS-SPIFFS> 250.710 bytes / 1024 = 244kb. This means I have 256k - 244k = 12k space.

Link: https://github.com/pgollor/esp8266-webconf-mDNS-OTA

Adding my basic routines, I get an sketch about 253k, so I guess can work. I'll make some tests and I will share it this weekend.

Thanks,

A.
User avatar
By tlerdrden
#35646
tlerdrden wrote:Hi Krzysztof,

Thanks again for your answer.

Well, I am starting understanding the needs to perform an OTA upgrade. Since the memory point of view:

1. “Flash chip size is 2x the size of the sketch”.

So, if my flash size is 512k, my sketch should be less than 512k/2=256k.

However, the example OTA sketches I use ( from https://github.com/esp8266/Arduino/blob ... updates.md) are bigger than the required memory size. I have compiled the sketch in the Arduino IDE and getting these results:

1. BasicOTA.ino: 223.302 bytes / 1024 = 218kb. This means I have 256k - 218k = 38k space.


Link: https://github.com/esp8266/Arduino/blob ... sicOTA.ino

2. OTA-mDNS-SPIFFS> 250.710 bytes / 1024 = 244kb. This means I have 256k - 244k = 12k space.

Link: https://github.com/pgollor/esp8266-webconf-mDNS-OTA

Adding my basic routines, I get an sketch about 253k, so I guess can work. I'll make some tests and I will share it this weekend.

Thanks,

A.


Sorry, they aren't bigger.
User avatar
By tlerdrden
#35920 Hi,

I have made some tests. I have used the following sketch.

https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266mDNS/examples/OTA-mDNS-SPIFFS/OTA-mDNS-SPIFFS.ino

But the Serial monitor returns:


ets Jan 8 2013,rst cause:4, boot mode:(1,7)

wdt reset


It is interesting that I am using the same wiring for a lot of sketches, so I wouldn´t change it.

Time ago, I used this sketch:

https://github.com/esp8266/Arduino/blob/esp8266/hardware/esp8266com/esp8266/libraries/ESP8266mDNS/examples/DNS_SD_Arduino_OTA/DNS_SD_Arduino_OTA.ino

But I had similar results to this post:

https://github.com/esp8266/Arduino/issues/1092

I guess that the ESP-07 is not compatible with OTA. I will try it with -12 as soon as I can. Anyway, any expierence with the same version would be very interesting to be shared.

Thanks, ;)

A.
User avatar
By El_Panda
#54182 ESP-07 1M is compatible with OTA.

Things that make me succeed OTA (after many fails ;) !) :

1) ESP-07 need to be very-well powered (good 3.3v + sufficient current). If not OTA may start but quickly fail.

2) Burn the latest SDK espressif (ESP_NONOS_SDK_V1.5.3). Use 1M (512k+512k) Flash format.

3) Upload sketch using 1M(64k SPIFFS)

Hope this help !