espressif / ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
http://bbs.espressif.com
Apache License 2.0
3.35k stars 1.57k forks source link

OTA wdt reset (GIT8266O-831) #1255

Closed BLLuis closed 1 year ago

BLLuis commented 1 year ago

Environment

Problem Description

Using the example system/ota/native_ota/2+MB_flash/new_to_new_no_old The operation hangs and fire a wdt reset after some time, It seems that the system takes too much time in line 318:

err = esp_ota_begin(update_partition, OTA_SIZE_UNKNOWN, &update_handle);

Expected Behavior

Ota update

Actual Behavior

Watchdog reset

Steps to repropduce

  1. Select example ota/native_ota/2+MB_flash/new_to_new_no_old
  2. Compile the Example
  3. Flash the example
  4. Prepare ota files
  5. Put the ota files into your web server
  6. Test from your browser if you can download ota files
  7. Reset the ESP8266 to see if the ota upgrade suceeds
  8. wait some time

Debug Logs

` I (28430) ota: Starting OTA example... @ 0x40223360 flash 2MB D (28439) esp_ota_ops: found ota app max = 2 D (28442) esp_ota_ops: finding factory app...... I (28446) ota: Running partition type 0 subtype 16 (offset 0x00010000) I (28453) ota: Server IP: 192.168.1.169 Server Port:80 I (28533) ota: Connected to server I (28534) ota: Connected to http server I (28538) ota: Send GET request to server succeeded I (28540) ota: Writing to partition subtype 17 at offset 0x110000

ets Jan 8 2013,rst cause:4, boot mode:(1,7)

wdt reset `

Other items if possible

partitions.csv

`# Espressif ESP8266 Partition Table

Name, Type, SubType, Offset, Size

nvs, data, nvs, 0x9000, 0x4000 otadata, data, ota, 0xd000, 0x2000 phy_init, data, phy, 0xf000, 0x1000 ota_0, 0, ota_0, 0x10000, 0xD0000 storage_0, data, spiffs, , 0x20000 ota_1, 0, ota_1, 0x110000, 0xD0000 storage_1, data, spiffs, , 0x20000 `

BLLuis commented 1 year ago

Sorry, I took one with 1Mb and trying the example for 2Mb, have several and I didn't check flash size,