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:
Select example ota/native_ota/2+MB_flash/new_to_new_no_old
Compile the Example
Flash the example
Prepare ota files
Put the ota files into your web server
Test from your browser if you can download ota files
Reset the ESP8266 to see if the ota upgrade suceeds
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
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
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 `