Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

OTA and SPIFFS

Open odilonafonso opened this issue 10 years ago • 1 comments

Basic Infos

Hardware

Hardware: ESP-12 NodeMCU V2 Core Version: 2.3.0

Description

I can not update a sketch with OTA. I read this:

The most common causes of OTA failure are as follows:

not enough physical memory on the chip (e.g. ESP01 with 512K flash memory is not enough for OTA), too much memory declared for SPIFFS so new sketch will not fit between existing sketch and SPIFFS – see Update process - memory view, too little memory declared in Arduino IDE for your selected board (i.e. less than physical size). For more details regarding flash memory layout please check File system. For overview where new sketch is stored, how it is copied and how memory is organized for the purpose of OTA see Update process - memory view.

I can compile in both modes - using Serial and OTA, but when the sketch that has been updated with OTA comes into operation, it crashes.

Settings in IDE

Module: NodeMCU 1.0 (ESP-12E Module) Flash Size: 4MB/3MB CPU Frequency: 80Mhz Flash Mode: DIO Flash Frequency: ?40Mhz? Upload Using: OTA / SERIAL Reset Method: nodemcu

odilonafonso avatar Aug 31 '16 12:08 odilonafonso

Hi. This issue was solved after reading #2438

odilonafonso avatar Aug 31 '16 14:08 odilonafonso