Closed greentd closed 2 months ago
I bought an ESP32C3 development board and ran it with esp-idf v5.07. I still get the error:
E (6255) esp_image: Checksum failed. Calculated 0xef read 0x0 E (6255) simple_ota_example: Firmware upgrade failed
I (4525) example_connect: Got IPv6 event: Interface "example_netif_sta" address: fe80:0000:0000:0000:9e9e:6eff:fe09:ac68, type: ESP_IP6_ADDR_IS_LINK_LOCAL I (4975) esp_netif_handlers: example_netif_sta ip: 192.168.113.129, mask: 255.255.255.0, gw: 192.168.113.1 I (4975) example_connect: Got IPv4 event: Interface "example_netif_sta" address: 192.168.113.129 I (4985) example_common: Connected to example_netif_sta I (4985) example_common: - IPv4 address: 192.168.113.129, I (4995) example_common: - IPv6 address: fe80:0000:0000:0000:9e9e:6eff:fe09:ac68, type: ESP_IP6_ADDR_IS_LINK_LOCAL I (5005) wifi:Set ps type: 0, coexist: 0
I (5005) simple_ota_example: Starting OTA example task I (5015) simple_ota_example: Attempting to download update from https://192.168.113.118:8000/upload/test_hello.bin.xz.packed I (5025) main_task: Returned from app_main() I (5125) esp-x509-crt-bundle: Certificate validated I (5465) esp_https_ota: Starting OTA... I (5465) esp_https_ota: Writing to partition subtype 17 at offset 0x150000 E (6255) esp_image: Checksum failed. Calculated 0xef read 0x0 E (6255) simple_ota_example: Firmware upgrade failed
I also tested it on esp32c3 using esp-idf v5.14, and it also cannot be compressed and upgraded.
Thank you for reporting the issue. Please check if option CONFIG_BOOTLOADER_COMPRESSED_ENABLED
is enabled in the configuration menu.
Answers checklist.
IDF version.
ESP-IDF v5.4-dev-2744-g59e1838270
Espressif SoC revision.
ESP32S3FH4R2
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
CMD
Development Kit.
ESP32S3FH4R2
Power Supply used.
External 3.3V
What is the expected behavior?
I want to implement differential compression OTA on esp32s2fh4r2 to reduce the flash usage of OTA partition
What is the actual behavior?
https://github.com/espressif/esp-iot-solution/tree/master/examples/ota/simple_ota_example
Using this routine, the uncompressed bin file can be upgraded normally, but the compressed file will prompt after the upgrade and restart.
E (122) esp_image: Checksum failed. Calculated 0xef read 0x0 E (128) boot: OTA app partition slot 1 is not bootable
Steps to reproduce.
Debug Logs.
More Information.
No response