HI,
I am currently trying to set up an update function via SD card. I have tried the update example. And the code from ESP32 firmware and filesystem update from SD card – 1 – Renzo Mischianti.
In both examples, reading the update file from the SD card works. At the end of the write process, however, the error message nivalid segment length 0xffffffffff always appears:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4832
load:0x40078000,len:16460
load:0x40080400,len:4
load:0x40080404,len:3504
entry 0x400805cc
Welcome to the SD-Update example!
Try to start update
Written : 358304 successfully
E (6417) esp_image: nivalid segment length 0xffffffffff
Error Occurred. Error #: 9
What could be the reason for this?
I have tested with different Arduino versions and two ESP32 boards.
Hardware: ESP32S3 WROOM and ESP32 WROOFER-B
Arduino: 1.8.19 and 2.3.3
Oliver