Hot answers tagged

3 votes
Accepted

Wireless programming of Arduino

My ArduinoOTA library, which is based on Arduino's WiFi101OTA library, was created for upload from IDE. But in some scenarios as for example deployed sleeping battery powered devices it is better to ...
user avatar
  • 16.4k
3 votes
Accepted

ESP-01 OTA Error uploading

The ESP-01 comes in two variants: blue, with 512KiB flash, and black, with 1MiB flash. You have chosen an arrangement that needs 4MiB flash. It won't fit. Choose a suitable flash size for your board.
user avatar
  • 103k
3 votes
Accepted

Is 1MB flash enough for OTA upload in ESP-01?

Yes, 1MB is fine for OTA. There are, though, a few caveats when working with OTA that you must observe regardless of the flash size: The maximum OTA program size is less than half the available flash ...
user avatar
  • 103k
3 votes
Accepted

ESP8266 OTA update with different flash size settings?

The basic problem is that when you upload over OTA you don't upload the partition structure. The ESP32's flash is split into a number of "partitions" or areas. It might look something like: ...
user avatar
  • 103k
2 votes

Is 1MB flash enough for OTA upload in ESP-01?

For OTA uploads, the size of the compiled (old sketch + new sketch) should not exceed the flash size. Due to this, large sketches (more than 500KB with 1MB flash) cannot be OTA uploaded directly if ...
user avatar
2 votes

Why doesn't OTA work with the Ai-Thinker ESP32-CAM board?

You do not have to go through the hassle with editing the boards.txt if you want to have OTA only if you do not need it or you want a custom partition scheme. That said the OTA partition is always ...
user avatar
2 votes
Accepted

Why doesn't OTA work with the Ai-Thinker ESP32-CAM board?

The boards.txt file configures what can be configured in the Arduino IDE for each board. On my installation, this is found at C:\Users\MyUser\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0....
user avatar
  • 174
2 votes
Accepted

esp8266 OTA issue

Things to check: Partition arrangement selected. You have to make sure to keep the same partition arrangement between uploads. Partition arrangement selected. You have to make sure that the partition ...
user avatar
  • 103k
2 votes
Accepted

OTA-program SPIFFS on the ESP8266

Basicly OTA supports the upload of *.bin files. Wether this contains compiled code or a filesystem (SPIFFS/LittleFS) is irrelevant. BUT The space for the OTA (partition) has to be min the size of the *...
user avatar
2 votes

Store & retrieve parameters after sketch update

There is no need for an SD card. You can write all relevant parameters into a file in SPIFFS (e.g. json if you like) before starting the OTA update. During initialization you read the file and set the ...
user avatar
  • 1,773
2 votes
Accepted

How to change ArduinoOTA upload timeout?

The only timeout I can find is in the espota.py script itself. That is riddled with such lines as: sock.settimeout(10) You would need to scour that program and change them all. However ArduinoOTA ...
user avatar
  • 103k
2 votes
Accepted

Error 101 Server Did Not Report Size from OTA Upgrade framework via git hub

The ESP8266httpUpdate library wants to know in advance how large the file is before it starts downloading it. It wants to know this so it can tell, before trying to download (and program), whether or ...
user avatar
  • 3,993
1 vote
Accepted

A library issue with ArduinoOTA for MKR1400GSM

Arduino made changes in platform.txt files for IDE 2.0 pluggable monitor system, which is a system to detect COM ports, network ports and other means to upload to Arduino. While they did the changes ...
user avatar
  • 16.4k
1 vote

ESP32 OTA update over MQTT using "update.h"

You are just throwing an unparseable stream of ASCII decimal representations of the binary data at your code, then writing that ASCII data verbatim to the flash. That can never work. Instead you need ...
user avatar
  • 103k
1 vote

OTA over MQTT for ESP32

I am not familiar with OTA for ESP32 but with SAMD21 using ArduinoOTA library and there the download is not done over MQTT but HTTPS. Link to download is sent over MQTT but that's where it ends, ...
user avatar
  • 391
1 vote

Is it possible to check for correct architecture on OTA update (ESP32 or ESP8266)?

I assume you are the one creating the OTA update. If so, then why don't you just include a "signature" in the code that is the architecture, i.e. ESP8266 vs. ESP32 and then check for that ...
user avatar
  • 1,016
1 vote

OTA update - sodaq board (arduino M0 compatible)

SOLVED! I have compiled my own SDUBoot.ino with fixed SDU_START 0x2000 and for SODAQ Sara (boot/sodaq_sara.h). My sketch with #include "SDU.h" compiles successfully. The board package is ...
user avatar
  • 111
1 vote

Esp32: is OTA compatible with FREERTOS

I was also believing that it is not possible but I handle it thanks to this post below; https://github.com/SensorsIot/ESP32-OTA/issues/8 I applied what ever shared and it works like a charm together ...
user avatar
1 vote

Esp32: is OTA compatible with FREERTOS

You can't not use FreeRTOS. The whole ESP-IDF is based around it. The Arduino setup() and loop() run in their own FreeRTOS thread. If you "turn off" FreeRTOS then nothing will work. Whatever ...
user avatar
  • 103k
1 vote

Why doesn't OTA work with the Ai-Thinker ESP32-CAM board?

As stated in the comments by @Codebreaker007 using the ESP32 Wrover Module works and if you put the pin definitions inline in the app there isn't a problem #define CAMERA_MODEL_AI_THINKER #if defined(...
user avatar
  • 941
1 vote

How can I switch from ArduinoOTA to ESPhome safely?

I've found that when a flash fails with a space error, I've usually specified the wrong flash size option in Arduino (under Tools->Flash Size). Depending on the version of Arduino you're using, try ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible