Page 1 of 1

ESP32 ota的失败的问题

Posted: Fri Apr 09, 2021 6:37 am
by pengjs
[0;31mE (42044) DRV NVS: nv open successed[0m

[14:15:20.852]收←◆[0;31mE (42104) DRV NVS: nv open successed[0m

[14:15:20.899]收←◆[0;31mE (42149) DRV NVS: nv open successed[0m

[14:15:20.943]收←◆[0;31mE (42194) DRV NVS: nv open successed[0m

[14:15:21.004]收←◆[0;31mE (42254) DRV NVS: nv open successed[0m

[14:15:21.039]收←◆[0;31mE (42289) DRV NVS: nv open successed[0m
[0;31mE (42309) DRV NVS: nv open successed[0m

[14:15:21.091]收←◆[0;31mE (42344) DRV NVS: nv open successed[0m

[14:15:21.155]收←◆ota_t.ota_start in ...
[14:15:21.354]收←◆
try to run into ota update codes.
[0;31mE (42619) drv_ota: Running partition type 0 subtype 16 (offset 0x00010000)[0m
[0;31mE (42619) drv_ota: Writing to partition subtype 16 at offset 0x10000[0m

[14:15:22.378]收←◆[0;31mE (43629) drv_ota: Prepare to restart system![0m
W (43634) wifi:hmac tx: stop, discard
W (43639) wifi:hmac tx: stop, discard

[14:15:22.562]收←◆ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:2
load:0x3fff0030,len:4
load:0x3fff0034,len:5800
load:0x40078000,len:14820
load:0x40080400,len:3864
entry 0x4008063c

log如上,为什么开始ota升级,esp_restart()后,不进入ota的app

Re: ESP32 ota的失败的问题

Posted: Fri Apr 09, 2021 10:31 am
by ESP_Gargamel
从你的 log 上看 [14:15:21.155] 开始做 OTA,[14:15:22.378] restart。耗时 1s,确认有进行 OTA 操作?可参考 examples/system/ota 下的几个示例进行操作。