Closed nilber closed 2 years ago
OTA did not work for our Project with all single ESP32 mcu. We found a solution and opened the PR #5426 which fixed the issue for us. You can try with
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.3rc1/platform-espressif32-2.0.3new.zip
I was 24 hours without sleep looking for a solution, I found this and now everything works :)
Hope it can help more people
[env:development]
platform = espressif32
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1
tool-esptoolpy@ ~1.30100.210531
tool-mkspiffs@ ~2.230.0
toolchain-esp32s2ulp@ ~1.22851.191205
; platform = https://github.com/platformio/platform-espressif32.git
; platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32/releases/download/2.0.3-RC1/esp32-2.0.3-RC1.zip
; board = featheresp32-s2
framework = arduino
board = esp32dev
build_flags = -D CONFIG_FREERTOS_UNICORE -D CONFIG_ESP32_DEFAULT_CPU_FREQ_80
board_build.mcu = esp32s2
; board_build.partitions = huge_app.csv
board_build.partitions = partition_ota.csv
board_build.variant = esp32s2
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.arduino.ldscript = esp32s2_out.ld
Board
esp32-s2-solo
Device Description
Makerfabs-ESP32-S2-Parallel-TFT-with-Touch
Hardware Configuration
[env:develope] platform = espressif32 board = featheresp32-s2 framework = arduino
Version
v2.0.1
IDE Name
PlatformIO
Operating System
macOS
Flash frequency
240MHz
PSRAM enabled
yes
Upload speed
115200
Description
I've tried several tutorials, in several different ways, Amazon S3, HttpUpload, SD Card, in all the same error: "Flash Read Failed"
I located the origin in
Update.h (#define UPDATE_ERROR_READ(3)
Update.cpp return("Flash Read Failed");)
In this line of code the error:
line 242 Update.cpp
I've tried all versions arduino-esp32
2.0.0 2.0.1 2.0.2 2.0.3-RC1
There is another strange thing, sometimes, right after erasing the flash and uploading a new file system with OTA, it displays the error message, but when resetting the ESP32-S2 it is up to date.
But from here on, new OTA updates don't work. Uploading via USB doesn't work either, I have to do the disk erase again.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide