Skip to content

OTA and SPIFFS #2465

Closed
Closed
@odilonafonso

Description

@odilonafonso

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions