硬件 ESP32S3-8M
ESP-IDF 5.3.1
联网 4g modem
I (82237) simple_ota_example: HTTP_EVENT_ON_DATA, len=128
I (82247) simple_ota_example: HTTP_EVENT_ON_DATA, len=237
I (82247) simple_ota_example: HTTP_EVENT_ON_DATA, len=147
I (82257) simple_ota_example: HTTP_EVENT_ON_DATA, len=512
I (82257) simple_ota_example: HTTP_EVENT_ON_DATA, len=512
I (82297) simple_ota_example: HTTP_EVENT_ON_DATA, len=512
I (82297) simple_ota_example: HTTP_EVENT_ON_DATA, len=512
I (82307) simple_ota_example: HTTP_EVENT_ON_DATA, len=400
I (82307) esp_image: segment 0: paddr=00210020 vaddr=3c0b0020 size=34f10h (216848) map
Guru Meditation Error: Core / panic'ed (Cache disabled but cached memory region accessed).
Write back error occurred while dcache tries to write back to flash
The following backtrace may not indicate the code that caused Cache invalid access
Core 0 register dump:
PC : 0x4037d842 PS : 0x00060134 A0 : 0x82005260 A1 : 0x3fca3380
--- 0x4037d842: esp_cpu_wait_for_intr at C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_hw_support/cpu.c:64
A2 : 0x00000000 A3 : 0x3fca352c A4 : 0x8037f0d9 A5 : 0x3fcc7ed0
A6 : 0x00060023 A7 : 0x00000003 A8 : 0x8203c942 A9 : 0x3fca3340
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x60023040 A13 : 0x60023000
A14 : 0x4df31538 A15 : 0x40000000 SAR : 0x00000001 EXCCAUSE: 0x00000007
--- 0x40000000: _WindowOverflow4 in ROM
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace: 0x4037d83f:0x3fca3380 0x4200525d:0x3fca33a0 0x420ab1f3:0x3fca33c0
--- 0x4037d83f: xt_utils_wait_for_intr at C:/Espressif/frameworks/esp-idf-v5.3.1/components/xtensa/include/xt_utils.h:82
(inlined by) esp_cpu_wait_for_intr at C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_hw_support/cpu.c:55
0x4200525d: esp_vApplicationIdleHook at C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_system/freertos_hooks.c:58
0x420ab1f3: prvIdleTask at C:/Espressif/frameworks/esp-idf-v5.3.1/components/freertos/FreeRTOS-Kernel/tasks.c:4344 (discriminator 1)
Core 1 register dump:
PC : 0x420842e2 PS : 0x00060a34 A0 : 0x82081020 A1 : 0x3fcc1870
--- 0x420842e2: sha_ll_fill_text_block at C:/Espressif/frameworks/esp-idf-v5.3.1/components/hal/esp32s3/include/hal/sha_ll.h:138 (discriminator 3)
(inlined by) sha_hal_hash_block at C:/Espressif/frameworks/esp-idf-v5.3.1/components/hal/sha_hal.c:75 (discriminator 3)
A2 : 0x00000002 A3 : 0x3c0f74dc A4 : 0x3c0f7500 A5 : 0x00000000
A6 : 0x00000005 A7 : 0x3fcd4100 A8 : 0x23f43bc0 A9 : 0x6003b09c
A10 : 0x34333231 A11 : 0x3fcd4100 A12 : 0x6003b060 A13 : 0x00060c23
A14 : 0x00000001 A15 : 0x0000abab SAR : 0x00000019 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0x00000000
--- 0x40056f5c: memcpy in ROM
0x40056f72: memcpy in ROM
Backtrace: 0x420842df:0x3fcc1870 0x4208101d:0x3fcc1890 0x4207b9c2:0x3fcc18d0 0x4203b918:0x3fcc18f0 0x4203b724:0x3fcc1910 0x4203b7f1:0x3fcc1980 0x4203b8cd:0x3fcc19e0 0x4203a9f9:0x3fcc1a00 0x4206c4d9:0x3fcc1b30 0x4206c638:0x3fcc1b50 0x42014a06:0x3fcc1b80
--- 0x420842df: sha_ll_fill_text_block at C:/Espressif/frameworks/esp-idf-v5.3.1/components/hal/esp32s3/include/hal/sha_ll.h:139
(inlined by) sha_hal_hash_block at C:/Espressif/frameworks/esp-idf-v5.3.1/components/hal/sha_hal.c:75
0x4208101d: esp_sha_block_mode at C:/Espressif/frameworks/esp-idf-v5.3.1/components/mbedtls/port/sha/dma/sha.c:167
(inlined by) esp_sha_dma at C:/Espressif/frameworks/esp-idf-v5.3.1/components/mbedtls/port/sha/dma/sha.c:331
0x4207b9c2: mbedtls_sha256_update at C:/Espressif/frameworks/esp-idf-v5.3.1/components/mbedtls/port/sha/dma/esp_sha256.c:171
0x4203b918: bootloader_sha256_data at C:/Espressif/frameworks/esp-idf-v5.3.1/components/bootloader_support/src/idf/bootloader_sha.c:32
0x4203b724: process_segment_data at C:/Espressif/frameworks/esp-idf-v5.3.1/components/bootloader_support/src/esp_image_format.c:725
(inlined by) process_segment at C:/Espressif/frameworks/esp-idf-v5.3.1/components/bootloader_support/src/esp_image_format.c:600
(inlined by) process_segments at C:/Espressif/frameworks/esp-idf-v5.3.1/components/bootloader_support/src/esp_image_format.c:521
0x4203b7f1: image_load at C:/Espressif/frameworks/esp-idf-v5.3.1/components/bootloader_support/src/esp_image_format.c:148
0x4203b8cd: esp_image_verify at C:/Espressif/frameworks/esp-idf-v5.3.1/components/bootloader_support/src/esp_image_format.c:294
0x4203a9f9: esp_ota_end at C:/Espressif/frameworks/esp-idf-v5.3.1/components/app_update/esp_ota_ops.c:353
0x4206c4d9: esp_https_ota_finish at C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_https_ota/src/esp_https_ota.c:656
0x4206c638: esp_https_ota at C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_https_ota/src/esp_https_ota.c:770
0x42014a06: ota_event_task at F:/PROJ/infra_air_cdn_ctrl/components/ota/ota.c:161
行为 1 正常联网后不开启mqtt,直接进入ota, 调用esp_https_ota 一切正常
行为2 正常联网后开启mqtt,通过mqtt服务器下发指令后进入ota, 进入ota前销毁mqtt, 调用esp_https_ota 触发以上问题
debug行为 通过工具读取ota区域bin文件 通过对比服务器升级包验证一致
定位问题函数 esp_image_verify->image_load->process_segments,
只要开启mqtt,不管是否销毁,都会导致http ota以上问题
问题 严重怀疑 是mqtt开启后有某些机制导致以上问题
请官方人员尽快帮忙解决
下载固件完成后 镜像校验不通过
-
- Posts: 2
- Joined: Thu Jan 09, 2025 12:55 am
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 51 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.