修改IDF代码为HTTP OTA可以成功 但是用原来的https通过证书认证 还是ota失败
关键log:
I (234) wifi: wifi driver task: 3ffc0b20, prio:23, stack:3584, core=0
I (234) wifi: wifi firmware version: 2af77cc
I (244) wifi: config NVS flash: enabled
I (244) wifi: config nano forma
ting: disabled
I (244) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (254) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (294) wifi: Init dynamic tx buffer num: 32
I (294) wifi: Init data frame dynamic rx buffer num: 32
I (294) wifi: Init management frame dynamic rx buffer num: 32
I (294) wifi: Init management short buffer num: 32
I (294) wifi: Init static rx buffer size: 1600
I (304) wifi: Init static rx buffer num: 10
I (304) wifi: Init dynamic rx buffer num: 32
I (314) simple_ota_example: Setting WiFi configuration SSID TangPhone...
I (374) phy: phy_version: 4008, 544f89f, Jan 24 2019, 14:54:06, 0, 0
I (384) wifi: mode : sta (c4:4f:33:14:ec:f1)
I (384) simple_ota_example: Starting OTA example...
I (504) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (1484) wifi: state: init -> auth (b0)
I (1484) wifi: state: auth -> assoc (0)
I (1494) wifi: state: assoc -> run (10)
I (1514) wifi: connected with TangPhone, channel 1
I (1514) wifi: pm start, type: 1
I (2234) event: sta ip: 172.20.10.4, mask: 255.255.255.240, gw: 172.20.10.1
I (2234) simple_ota_example: Connect to Wifi ! Start to Connect to Server....
I (4264) esp_https_ota: Starting OTA...
I (4264) esp_https_ota: Writing to partition subtype 16 at offset 0x110000
I (4444) esp_https_ota: esp_ota_begin succeeded
I (4444) esp_https_ota: Please Wait. This may take time
I (4474) esp_https_ota: Connection closed,all data received
I (4474) esp_image: segment 0: paddr=0x00110020 vaddr=0x3f400020 size=0x1ce50 (118352) map
E (4574) esp_image: invalid segment length 0xffffffff
E (4574) esp_https_ota: Error: esp_ota_end failed! err=0x5379. Image is invalid
E (4574) simple_ota_example: Firmware Upgrades Failed