Hi every body.
I'm trying the sample code simple_ota_example with VS code. However I always get the issue:
E (7887) esp_image: invalid segment length 0x14f9ff
E (7887) simple_ota_example: Firmware upgrade failed
I use ESP-IDF ver 4.4.1 and openssl server on Window.
Please tell me how to get around this error.
Anybody can help me fix this issue. THank all
LOG:
/****************************
I (0) cpu_start: App cpu up.
I (472) cpu_start: Pro cpu start user code
I (472) cpu_start: cpu freq: 160000000
I (472) cpu_start: Application information:
I (476) cpu_start: Project name: simple_ota
I (481) cpu_start: App version: 1
I (486) cpu_start: Compile time: Aug 26 2022 06:55:36
I (492) cpu_start: ELF file SHA256: 88d84fc504fe433d...
I (498) cpu_start: ESP-IDF: v4.3.2-dirty
I (504) heap_init: Initializing. RAM available for dynamic allocation:
I (511) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (517) heap_init: At 3FFB7D88 len 00028278 (160 KiB): DRAM
I (523) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (529) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (536) heap_init: At 40095114 len 0000AEEC (43 KiB): IRAM
I (543) spi_flash: detected chip: generic
I (547) spi_flash: flash io: dio
I (552) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (597) simple_ota_example: SHA-256 for bootloader: 3402a9b0c6b92cbc1fbcf81ec31376f8d343b8b249948f05a818ed138f35d42c
I (597) simple_ota_example: SHA-256 for current firmware: c6440023adb2404f0f124201e92a20bf3962c1c305246bd7e16a8d850860e369
I (617) wifi:wifi driver task: 3ffc13bc, prio:23, stack:6656, core=0
I (617) system_api: Base MAC address is not set
I (617) system_api: read default base MAC address from EFUSE
I (627) wifi:wifi firmware version: eb52264
I (627) wifi:wifi certification version: v7.0
I (627) wifi:config NVS flash: enabled
I (637) wifi:config nano formating: disabled
I (637) wifi:Init data frame dynamic rx buffer num: 32
I (647) wifi:Init management frame dynamic rx buffer num: 32
I (647) wifi:Init management short buffer num: 32
I (657) wifi:Init dynamic tx buffer num: 32
I (657) wifi:Init static rx buffer size: 1600
I (657) wifi:Init static rx buffer num: 10
I (667) wifi:Init dynamic rx buffer num: 32
I (667) wifi_init: rx ba win: 6
I (677) wifi_init: tcpip mbox: 32
I (677) wifi_init: udp mbox: 6
I (677) wifi_init: tcp mbox: 6
I (687) wifi_init: tcp tx win: 5744
I (687) wifi_init: tcp rx win: 5744
I (697) wifi_init: tcp mss: 1440
I (697) wifi_init: WiFi IRAM OP enabled
I (697) wifi_init: WiFi RX IRAM OP enabled
I (707) example_connect: Connecting to codaTriBand...
I (717) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (817) wifi:mode : sta (10:97:bd:d2:c5:18)
I (817) wifi:enable tsf
I (817) example_connect: Waiting for IP(s)
I (2867) wifi<2,1>, old:<1,0>, ap:<255,255>, sta:<2,1>, prof:1
I (3607) wifi:state: init -> auth (b0)
I (3637) wifi:state: auth -> assoc (0)
I (3647) wifi:state: assoc -> run (10)
I (3677) wifi:connected with codaTriBand, aid = 1, channel 2, 40U, bssid = 66:32:b1:b0:a9:4a
I (3677) wifi:security: WPA2-PSK, phy: bgn, rssi: -39
I (3687) wifi:pm start, type: 1
I (3737) wifi:AP's beacon interval = 102400 us, DTIM period = 1
W (4147) wifi:<ba-add>idx:0 (ifx:0, 66:32:b1:b0:a9:4a), tid:6, ssn:2, winSize:64
I (5107) esp_netif_handlers: example_connect: sta ip: 192.168.68.126, mask: 255.255.255.0, gw: 192.168.68.1
I (5107) example_connect: Got IPv4 event: Interface "example_connect: sta" address: 192.168.68.126
I (5607) example_connect: Got IPv6 event: Interface "example_connect: sta" address: fe80:0000:0000:0000:1297:bdff:fed2:c518, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (5607) example_connect: Connected to example_connect: sta
I (5617) example_connect: - IPv4 address: 192.168.68.126
I (5617) example_connect: - IPv6 address: fe80:0000:0000:0000:1297:bdff:fed2:c518, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (5637) wifi:Set ps type: 0
I (5637) simple_ota_example: Starting OTA example
W (5647) wifi:<ba-add>idx:1 (ifx:0, 66:32:b1:b0:a9:4a), tid:0, ssn:0, winSize:64
I (7487) esp_https_ota: Starting OTA...
I (7487) esp_https_ota: Writing to partition subtype 16 at offset 0x110000
D (7837) HTTP_CLIENT: esp_transport_read returned:-1 and errno:128
I (7837) esp_https_ota: Connection closed
I (7837) esp_image: segment 0: paddr=00110020 vaddr=3f400020 size=1c5fch (116220) map
E (7887) esp_image: invalid segment length 0x14f9ff
E (7887) simple_ota_example: Firmware upgrade failed
/****************************
Need help about ESP-IDF Simple OTA failed with error [ esp_image: invalid segment length ]
Who is online
Users browsing this forum: ESP_igrr and 105 guests